Suppose you have an accounts collection with the following document structure: { _id: ObjectId("61af47c6e29861661d063714"), account_id: 1010, type: 'investment', limit: 1000000 }, { _id: ObjectId("61af47c6e29861661d063715"), account_id: 4336, type: 'derivatives', limit: 100000 }, { _id: ObjectId("61af47c6e29861661d063716"), account_id: 4336, type: 'commodity', limit: 1000 } Which of the following documents would be modified by this update? db.accounts.updateMany( { "type": "investment" }, { "$set": { "limit": 2000000 } } )
Consider a many-to-many relationship observed between courses and the students enrolled in these courses. Which of the following are true about modeling this many-to-many relationship with the document model in MongoDB?
Which of the following constraints might impact your data model for MongoDB?
What can you deduce from the explain() method?
For example:
db.collection.find().explain()