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

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -