lib/rails/graphql/request/strategy.rb
def collect_data(force = false)
            @data_pool = {}
            @context = request.build(Request::Context)

            # TODO: Create an orchestrator to allow cross query loading
            yield if force || listening_to?(:prepare)
          end
# This is where the strategy is most effective. By preparing the tree,
# it can load data in a pretty smart way
This is where the strategy is most effective. By preparing the tree,
it can load data in a pretty smart way
This is where the strategy is most effective . By preparing the tree it can load data in a pretty smart way
def collect_data(force = false)
            @data_pool = {}
            @context = request.build(Request::Context)
            yield if force || listening_to?(:prepare)
          end
def collect_data ( force = false ) @data_pool = { } @context = request . build ( Request :: Context ) yield if force || listening_to? ( :prepare ) end
This is where the strategy is most effective.
This is where the strategy is most effective .
# TODO: Create an orchestrator to allow cross query loading
force