Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Database
Created by Guest
Created on Nov 26, 2022

Need an array query operator like elem match which matches all array nested object instead of at least one array element

as per documentation elem match query matches at least one match in array of nested object, same we need a array query operator which returns the whole document only if elem match like criteria matches all elements in array of nested objects. I have gone through usecase of $all with $elemMatch but it behaviour different it is like $and with $elemMatch instead excepted behaviour i am asking or excepting mentioned earlier. https://www.mongodb.com/docs/manual/reference/operator/query/all/#use--all-with--elemmatch https://www.mongodb.com/docs/manual/reference/operator/query/elemMatch/
  • Attach files