-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Attributes
-
None
Currently Mongoid delegates aggregation implementation entirely to the driver and as a result, aggregation results are returned as BSON::Document instances and not Mongoid::Document instances, as documented in https://www.mongodb.com/docs/mongoid/master/reference/associations/#id4. Mongoid should provide a way to retrieve aggregation results as model instances, similar to AR's find_by_sql method.
- is related to
-
MONGOID-5411 Return query execution results as demongoized hashes without instantiating models
- Closed
- related to
-
MONGOID-5500 Implement marshalling aggregation results into models
- Backlog