Multiple $elemMatch expressions for matching array values using $all in MongoDB?

前端 未结 1 1928
谎友^
谎友^ 2020-12-05 19:30

In the answer to a question I found a interesting solution for searching array values using $elemMatch.

If we have the following documents in our collection:

相关标签:
1条回答
  • 2020-12-05 20:20

    This is the intended behavior. The documentation doesn't cover this use case and we are working on it to make it better. Its difficult, however, to document every possible query combination.

    0 讨论(0)
提交回复
热议问题