class ReeDaoAggTest::AggUsersAutoloadBooksChildren

def books_opts

def books_opts
  { autoload_children: true }
end

def call(ids_or_scope, **opts)

def call(ids_or_scope, **opts)
  agg(users, ids_or_scope, **opts) do
    belongs_to :organization
    has_many :books, -> { books_opts } do
      has_one :author
      has_many :chapters
      has_many :reviews do
        has_one :review_author
      end
    end
  end
end