-
Notifications
You must be signed in to change notification settings - Fork 11
Support for additional collection and cursor methods
Pradeeban Kathiravelu edited this page Jul 19, 2018
·
2 revisions
In this release, Bindaas supports more cursor and collection methods.
Bindaas supports sort option, as an optional parameter for the find operation.
{ "_operation" : "find" , "_operation_args" : { "query" : {'qty': {$gt: 50}} , "fields" :{ 'type' : 0 }, "skip" : 0, "limit" : 1000, "sort" : {'qty': -1, '_id':1} } }
Here, the results are first sorted in descending order of the property qty, and then ascending order of _id.
Now Bindaas supports Distinct operation, as part of its query APIs.
{ "_operation" : "distinct" , "_operation_args" : { "field" : "item", "query" : {'qty': {$gt: 50}} } }