Home user aggregate $and in mongodb grails plugin
Reply: 0

user aggregate $and in mongodb grails plugin

user536
1#
user536 Published in May 23, 2018, 10:39 pm

i want to create query in grails to mongodb by this :

collection.aggregate(params.first(), params.tail() as DBObject[]).results().findAll()

collection is my collection in mongo, params is my query

after run code i got this error

{ "serverUsed" : "/192.168.0.3:27017" , "ok" : 0.0 , "errmsg" : "bad query: BadValue: unknown top level operator: $match" , "code" : 16810}

please help me! this is so important

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.310182 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO