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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -