You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mapping field names to domain type properties should not fail if a given field name does not correspond to a property of the target domain type as it might only be part of the document stored in MongoDB.
This commit switches from a strict to a relaxed type mapping for aggregation executions. This allows users to add fields to the aggregation that might be part of the stored document but not necessarily of its java model representation.
Instead of throwing an exception in those cases the relaxed type check will go on with the user provided field names.
To restore the original behaviour use the strictMapping() option on AggregationOptions.
Closes#3542
Tweak wording in the docs. Remove unused code. Fix generics. Rename AggregateContext to AggregationOperation to AggregationDefinition to avoid yet another Context object.
See #3542.
Original pull request: #3545.
Mapping field names to domain type properties should not fail if a given field name does not correspond to a property of the target domain type as it might only be part of the document stored in MongoDB.
This would allow to eg. write aggregations like
without having to
project("id", "name")
on the fields upfront.Relates to: #3466
The text was updated successfully, but these errors were encountered: