Which Of The Following Query Selects Documents In The Records #127
Which of the following query selects documents in the records collection that match the condition { “user_id”: { $lt: 42 } }?
This multiple choice question (MCQ) is related to the book/course gs gs112 MongoDB. It can also be found in gs gs112 MongoDB CRUD Concepts and Operation - Read Operations - Quiz No.1.
Which of the following query selects documents in the records collection that match the condition { “user_id”: { $lt: 42 } }?
db.records.findOne( { “user_id”: { $lt: 42 } }, { “history”: 0 } )
db.records.find( { “user_id”: { $lt: 42 } }, { “history”: 0 } )
db.records.findOne( { “user_id”: { $lt: 42 } }, { “history”: 1 } )
db.records.select( { “user_id”: { $lt: 42 } }, { “history”: 0 } )
Similar question(s) are as followings:
Online Quizzes of gs112 MongoDB
GridFS, BSON Datatype and Administration Concepts - BSON - Quiz No.1
gs gs112 MongoDB
Online Quizzes