我在MongoDB上有一个远程数据库,我希望执行一个聚合方法来对条目w.r.t进行分组。使用艺术的某一领域。我的查询如下
db.musa.aggregate([{$group:{_id:"$username"}}])此查询返回数据库中唯一用户的列表,但我不知道如何使用restheart实现它。这样做有可能吗?
发布于 2015-10-21 09:38:56
我来自restheart.org团队..。
github https://github.com/SoftInstigate/restheart/issues/55上已经提出了一个类似的问题
我在这里贴上答案:
目前不支持聚合查询。 请注意,这是在路线图和计划下一个版本。 jira任务41:https://softinstigate.atlassian.net/browse/RH-41 作为解决办法,您可以在https://softinstigate.atlassian.net/wiki/x/IoCw上实现自定义应用程序处理程序:文档
https://stackoverflow.com/questions/33239027
复制相似问题