Method: GraphQL::Query::Context#initialize
- Defined in:
- lib/graphql/query/context.rb
#initialize(query:, values:) ⇒ Context
Make a new context which delegates key lookup to values
26 27 28 29 30 31 |
# File 'lib/graphql/query/context.rb', line 26 def initialize(query:, values:) @query = query @schema = query.schema @values = values || {} @errors = [] end |