Q. What does $in do in a MongoDB query?

A
Matches a single value
B
Matches any value in an array
C
Excludes values
D
Sets a range
Solution:

$in matches any value from the specified array in a query.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!