node js mongodb store query results in specific fields code example
Example: get custom fields in result of mongodb query
db.inventory.find( { age: "10" }, { _id: 0 , age: 1, user: { name: 1 } } )
db.inventory.find( { age: "10" }, { _id: 0 , age: 1, user: { name: 1 } } )