Answers for "get custom fields in result of mongodb query"

4

mongodb select fields

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

get custom fields in result of mongodb query

db.inventory.find( { age: "10" }, { _id: 0 ,  age: 1, user: { name: 1 } } )
Posted by: Guest on December-08-2020

Code answers related to "get custom fields in result of mongodb query"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language