Why might the query db.collection.find({status: {$all: ['A', 'D']}}) return no results? - Study24x7
Social learning Network
5 followers study24x7 30 Dec 2024 10:51 AM study24x7 study24x7

Why might the query db.collection.find({status: {$all: ["A", "D"]}}) return no results?

A

The $all operator is used incorrectly

B

The 'status' field doesn't contain arrays

C

The 'status' field doesn't exist

D

There are no documents with both 'A' and 'D' in the 'status' field

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles