but this doesn't take into consideration what the ^ and @ operators do (still learning this).
Jun 11, 2023, 4:43 PM
The caret (
) is the parent operator, which means it goes one level up in scope. A filter boils down to one or more booleans, returning every document that matches them all. By adding an additional check to your “related” filter that ensures the document doesn’t match the parent, you can avoid returning the current document again. Something like