-
Type: Task
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: 6.0.0
-
Component/s: None
-
None
-
Environment:Mac OSX, Ruby 2.3.0, Rails 5.0.0.rc2
According to: MONGOID-4173 nested eager loading has been merged into master, however it doesn't seem to be working correctly.
I have several models, Place, Post, Comments, User and Vote
I am making a query like: Place.includes(post: [:user, :vote, :comments]).all
However, the only thing I get back is a Mongoid::Errors::InvalidIncludes as Mongoid apparently still only supports one level of eager loading.
Am I doing something wrong, or is nested eager loading in fact not actually merged into the master branch?
- is related to
-
MONGOID-4716 Fix eager loading of nested referenced associations
- Closed