I new to mongo and I am searchin on how to get the ObjectID of a document when I do a query on a certain field in that document ?
Can someone help me with this ?
> I new to mongo and I am searchin on how to get the ObjectID of a document
> when I do a query on a certain field in that document ?
> Can someone help me with this ?
> Thanks
> Miguël
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
Hi Miguel -- when you query on a particular field in that document, is the *_id* field being returned? The _id field should contain the ObjectID of the document.
If you don't see the _id field as part of the resulting document, could you specify the query that you are running?
On Friday, September 28, 2012 2:43:53 AM UTC-4, Miguel Blauwbloeme wrote:
> Hi all,
> I new to mongo and I am searchin on how to get the ObjectID of a document > when I do a query on a certain field in that document ?
> Can someone help me with this ?
> I new to mongo and I am searchin on how to get the ObjectID of a document > when I do a query on a certain field in that document ?
> Can someone help me with this ?
> I new to mongo and I am searchin on how to get the ObjectID of a document > when I do a query on a certain field in that document ?
> Can someone help me with this ?
On Friday, September 28, 2012 2:43:53 AM UTC-4, Miguel Blauwbloeme wrote:
> Hi all,
> I new to mongo and I am searchin on how to get the ObjectID of a document > when I do a query on a certain field in that document ?
> Can someone help me with this ?