mongodb - Mongo filter results by distinct field -
I use this rugby driver to mow:
I have many documents in such a collection Are:
{"_productId" => 10 ....} {"_productId" => 10 ....} {"_productId" => 12 ....}
What does it mean to get all the documents with a specific "_productId", I mean I want to take the first and last collection items in this example.
@ db ['archive']. Specific ('_ Product ID')
Comments
Post a Comment