v5.5.3
Fixed
distinct(),bulkDistinct(), andgroupBy()now work on nested fields (e.g.,distinct('tags.key', true)). Previously these returned empty results because the compiled DSL lacked the requirednestedaggregation wrapper. The package now auto-detects nested mappings and wraps aggregations accordingly; no changes are needed in userland code.- When
whereNestedObject()is combined withdistinct()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