Sha256: 0e1cc055c4af77d63ecf5f4cce7c53a1637d32edb0154c50b19781403844ffd1

Contents?: true

Size: 517 Bytes

Versions: 7

Compression:

Stored size: 517 Bytes

Contents

module GraphQL
  class Query
    class SerialExecution
      module OperationResolution
        def self.resolve(irep_node, target, query)
          result = query.context.execution_strategy.selection_resolution.resolve(
            query.root_value,
            target,
            [irep_node],
            query.context,
          )

          result
        rescue GraphQL::InvalidNullError => err
          err.parent_error? || query.context.errors.push(err)
          nil
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphql-1.2.6 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-1.2.5 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-1.2.4 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-1.2.3 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-1.2.2 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-1.2.1 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-1.2.0 lib/graphql/query/serial_execution/operation_resolution.rb