Articles → MONGODB → Projections In Mongodb

Projections In Mongodb






Purpose





Example






Picture showing the list of documents using the find method
Click to Enlarge



db.Articles.find({}, {subject:1, _id:0})



Output


Picture showing getting the subset of fields using the MongoDB projections
Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Friday, March 17, 2023

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250