lib/graphql/schema.rb
def after_any_lazies(maybe_lazies)
        if maybe_lazies.any? { |l| lazy?(l) }
          GraphQL::Execution::Lazy.all(maybe_lazies).then do |result|
            yield result
          end
        else
          yield maybe_lazies
        end
      end
# Return a lazy if any of `maybe_lazies` are lazy,
# otherwise, call the block eagerly and return the result.
# @param maybe_lazies [Array]
# @api private
Return a lazy if any of `maybe_lazies` are lazy,
otherwise, call the block eagerly and return the result.
Return a lazy if any of ` maybe_lazies ` are lazy otherwise call the block eagerly and return the result .
def after_any_lazies(maybe_lazies)
        if maybe_lazies.any? { |l| lazy?(l) }
          GraphQL::Execution::Lazy.all(maybe_lazies).then do |result|
            yield result
          end
        else
          yield maybe_lazies
        end
      end
def after_any_lazies ( maybe_lazies ) if maybe_lazies . any? { | l | lazy? ( l ) } GraphQL :: Execution :: Lazy . all ( maybe_lazies ) . then do | result | yield result end else yield maybe_lazies end end
Return a lazy if any of `maybe_lazies` are lazy,
otherwise, call the block eagerly and return the result.
Return a lazy if any of ` maybe_lazies ` are lazy otherwise call the block eagerly and return the result .
maybe_lazies
None
api
None