Complete the code to insert a document into the collection.
db.users.insertOne({ name: "Alice", age: [1] })The age field should be a number, so 25 without quotes is correct.
Complete the code to find documents where the age is greater than 30.
db.users.find({ age: { [1]: 30 } })The operator $gt means 'greater than', so it finds ages above 30.
Fix the error in the update query to set the city field.
db.users.updateOne({ name: "Bob" }, { [1]: { city: "Paris" } })The correct operator to update fields is $set with a dollar sign.
Fill both blanks to create a document with an embedded address object.
db.users.insertOne({ name: "Eve", address: { [1]: "123 Main St", [2]: "NY" } })The address has a street and a state field, so use 'street' and 'state'.
Fill all three blanks to query documents with age greater than 20 and city equals 'Boston'.
db.users.find({ age: { [1]: 20 }, address: { [2]: [3] } })Use $gt for age greater than 20, and match city to "Boston".
