Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4292

Nested Eager Loading Issue

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 12_01_17
    • 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?

            Assignee:
            Unassigned Unassigned
            Reporter:
            ch0ke Justin Black
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: