Horje
mongodb select specific fields Code Example
mongodb select specific fields
db.student.find({}, 'roll _id'); // <--- Just multiple fields name space separated
// OR
db.student.find({}).select('roll _id'); // <--- Just multiple fields name space separated
// OR
db.student.find({}, {'roll' : 1 , '_id' : 1 ); // <---- Old lengthy boring way
mongodb select fields
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )




Whatever

Related
minikube ingress Code Example minikube ingress Code Example
bootstrap css non negative number input Code Example bootstrap css non negative number input Code Example
bill gates Code Example bill gates Code Example
delete sql Code Example delete sql Code Example
delete all records from table Code Example delete all records from table Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8