Complete the code to find all documents in the collection.
db.collection.[1]()The find() method retrieves documents from a MongoDB collection.
Complete the code to insert a new document into the collection.
db.collection.[1]({ name: 'Alice', age: 30 })
The insertOne() method adds a single new document to the collection.
Fix the error in the query to update a document's age.
db.collection.updateOne({ name: 'Bob' }, { [1]: { age: 35 } })The $set operator updates specific fields in a document.
Fill both blanks to query documents where age is greater than 25.
db.collection.find({ age: { [1]: [2] } })The $gt operator means 'greater than'. So this finds documents with age > 25.
Fill all three blanks to create a denormalized document with embedded address.
db.collection.insertOne({ name: 'Eve', age: 28, address: { [1]: '123 Main St', [2]: 'Springfield', [3]: 'IL' } })In denormalization, related data like address is embedded. The keys are street, city, and state.
