Prueba esto. Consultas usando $in
y $all
no funcionan exactamente igual.
{"tags": { $all: [
{"$elemMatch": {"_id": "5271318ea7d63ba9a25045ad"}},
{"$elemMatch": {"_id": "526ffafba7d63ba9a25045a9"}}]
}}
Prueba esto. Consultas usando $in
y $all
no funcionan exactamente igual.
{"tags": { $all: [
{"$elemMatch": {"_id": "5271318ea7d63ba9a25045ad"}},
{"$elemMatch": {"_id": "526ffafba7d63ba9a25045a9"}}]
}}