I want to send 50 records to find query in one query 50 records with unique ids

0 views
Skip to first unread message

Kota

unread,
Jan 26, 2012, 10:30:01 AM1/26/12
to mongodb-user
Please help,

I want to send 50 records to find with unique ids only through one
query.

With out iterate to find , only one shot to query all.
Its possible through iterate. I want to be query all at a time.

How do I make it to do this query ?

please help urgency

Thanks

Barrie

unread,
Jan 26, 2012, 2:50:11 PM1/26/12
to mongodb-user
Hey Kota,

If I understand your question correctly, you could solve this issue by
using the "$in" operator in your query and passing an array of the
unique IDs you want to query for. There is documentation and an
example here: http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24in

Hope this helps!

Barrie
Reply all
Reply to author
Forward
0 new messages