sajad torkamani

MongoDB Compass project field:

{ item: 1, status: 1 }

MongoDB Shell:

db.inventory.find( { status: "A" }, { item: 1, status: 1, _id: 0 } )
Tagged: MongoDB

Leave a comment

Your email address will not be published. Required fields are marked *