Skip to content

v5.5.3

Choose a tag to compare

@pdphilip pdphilip released this 20 Mar 12:46
· 25 commits to main since this release

Fixed

  • distinct(), bulkDistinct(), and groupBy() now work on nested fields (e.g., distinct('tags.key', true)). Previously these returned empty results because the compiled DSL lacked the required nested aggregation wrapper. The package now auto-detects nested mappings and wraps aggregations accordingly; no changes are needed in userland code.
  • When whereNestedObject() is combined with distinct() on the same nested path, the nested filter is injected inside the aggregation context so that only matching sub-documents are aggregated.

Full Changelog: v5.5.2...v5.5.3