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
When using aggregation pipelines in ODM, users can use QueryResultDocument objects to hydrate aggregation results into objects. However, when using more complex pipelines, this can quickly lead to issues. For example, api-platform/core#2144 (comment) shows using a facet pipeline stage to simultaneously fetch results and the count from a collection at the same time. However, this can only be done with arrays and a separate iterator because dynamically mapping the aggregation result to an object is not possible.
The idea is to create a system similar to ORM's ResultSetMapping that allows for more flexible and dynamic mapping of aggregation pipeline results.
The text was updated successfully, but these errors were encountered:
Feature Request
Summary
When using aggregation pipelines in ODM, users can use
QueryResultDocument
objects to hydrate aggregation results into objects. However, when using more complex pipelines, this can quickly lead to issues. For example, api-platform/core#2144 (comment) shows using afacet
pipeline stage to simultaneously fetch results and the count from a collection at the same time. However, this can only be done with arrays and a separate iterator because dynamically mapping the aggregation result to an object is not possible.The idea is to create a system similar to ORM's
ResultSetMapping
that allows for more flexible and dynamic mapping of aggregation pipeline results.The text was updated successfully, but these errors were encountered: