1.

Which of the following query selects documents in the records collection that match the condition { “user_id”: { $lt: 42 } } ?$

A. db.records.findOne( { “user_id”: { $lt: 42 } }, { “history”: 0 } )
B. db.records.find( { “user_id”: { $lt: 42 } }, { “history”: 0 } )
C. db.records.findOne( { “user_id”: { $lt: 42 } }, { “history”: 1 } )
D. db.records.select( { “user_id”: { $lt: 42 } }, { “history”: 0 } )
Answer» C. db.records.findOne( { ‚Äö√Ñ√∂‚àö√ë‚àö‚à´user_id‚Äö√Ñ√∂‚àö√ë‚àöœÄ: { $lt: 42 } }, { ‚Äö√Ñ√∂‚àö√ë‚àö‚à´history‚Äö√Ñ√∂‚àö√ë‚àöœÄ: 1 } )


Discussion

No Comment Found