Answers for "mongodb get fields of collection"

Go
5

mongodb select fields

db.inventory.find( { status: "A" }, { item: 1, status: 1 } )
Posted by: Guest on September-24-2020
0

mongoid collection return only specific fields

Map.only(:name).all
Posted by: Guest on July-04-2021

Code answers related to "mongodb get fields of collection"

Browse Popular Code Answers by Language