Answers for "how to return only specific fields for a query in data mongoose"

Go
8

mongoose find return only certain fields

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

Code answers related to "how to return only specific fields for a query in data mongoose"

Browse Popular Code Answers by Language