$match in a multi-doc stream can match either sibling documents in the same file or documents from parent files. The code in findMatches prioritizes parents: if any parent doc matches, siblings are not checked. This is confusing and limiting and needs better thought.
`$match` in a multi-doc stream can match either sibling documents in the same file or documents from parent files. The code in `findMatches` prioritizes parents: if any parent doc matches, siblings are not checked. This is confusing and limiting and needs better thought.
flamingcow
changed title from Add tests: $match should match sibling OR parent docs, not both to $match doc behavior is confusing2026-03-06 21:45:24 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
$matchin a multi-doc stream can match either sibling documents in the same file or documents from parent files. The code infindMatchesprioritizes parents: if any parent doc matches, siblings are not checked. This is confusing and limiting and needs better thought.Add tests: $match should match sibling OR parent docs, not bothto $match doc behavior is confusing