Closed jeffj closed 12 years ago
I think current 'find' method has supported advanced queries.
for example:
$('blog.post').find({'category_level_1': 'food', 'category_level_2': { $ne: 'vegetable' }}, function(reply){...})
It will select the posts which belongs to 'food' but not belongs to vegetable.
@jeffj Acsaga is correct, queries work exactly as expected -- even with skip, limit, and field selectors. Please see the README section on the "Find" command for more information and documentation.
Closing. :) Thanks for the example, Acsaga.
My bad. Thanks guys.
Is there a means to make multi parameter queries in mongous? i.e. db.things.find( { x : 3, y : "foo" } );
Mongo Docs: http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-Intro