Quiz: Advanced CRUD Operations
Test your understanding to help reinforce what you’ve learned so far.
We'll cover the following...
We'll cover the following...
Test Your Knowledge.
1
Given the following query, what will it return?
db.users.find({ "address.country": { $ne: "USA" } }, { name: 1, email: 1, _id: 0 })
A)
It returns all users who live in the USA, showing only their name and email.
B)
It returns all users who do not live in the USA, showing only their name and email.
C)
It returns all users, showing only their name and email.
D)
It returns only those users who have an address field.
Question 1 of 100 attempted
...