Get Custom Fields In Result Of Mongodb Query

[Solved] Get Custom Fields In Result Of Mongodb Query | Perl - Code Explorer | yomemimo.com
Question : mongodb select fields

Answered by : annoying-ant-chd232fwd9wi

db.inventory.find( { status: "A" }, { item: 1, status: 1 } )

Source : https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results | Last Update : Thu, 01 Oct 20

Question : get custom fields in result of mongodb query

Answered by : farhad-farhadi

db.inventory.find( { age: "10" }, { _id: 0 , age: 1, user: { name: 1 } } )

Source : https://docs.mongodb.com | Last Update : Tue, 15 Dec 20

Answers related to get custom fields in result of mongodb query

Code Explorer Popular Question For Perl