Groups
Groups
Sign in
Groups
Groups
mongodb-user
Conversations
About
Send feedback
Help
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 AM
1/26/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
1/26/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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