Which of the following command can be used to check the size of a collection named user?
Correct Answer: db.user.stats()
Explanation:
Note: This Question is unanswered, help us to find answer for this one
MongoDB Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More MongoDB MCQ Questions
Which command can be used to check the size of a collection named user?
Which method in MongoDB replaces the existing document with the new document passed as parameter?
Consider the following document from the products collection: { _id: 1, product_code: '1234', variations: [ { size: 'L', price: 1000 }, { size: 'M', price: 800 } ] } What does the following query using $elemMatch return? db.products.find( { product_code: '1234' }, { variations: { $elemMatch: { size: 'L' } } } )
If you are using { upsert: true } option in your update command, which parameter will be used to determine if any new documents were inserted:
Which operation add a new document to the users collection ?