$match doc behavior is confusing #5

Open
opened 2026-03-04 22:15:46 +00:00 by flamingcow · 0 comments
Owner

$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 confusing 2026-03-06 21:45:24 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bkl/bkl#5