Sha256: f38ce1cf29d6c008491b82c3e7d6bfc5eee2fa01108d764b807a95f886324b1e
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
module GraphQL class Query # Expose some query-specific info to field resolve functions. # It delegates `[]` to the hash that's passed to `GraphQL::Query#initialize`. class Context attr_accessor :execution_strategy, :ast_node def initialize(values:) @values = values end def [](key) @values[key] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql-0.9.3 | lib/graphql/query/context.rb |
graphql-0.9.2 | lib/graphql/query/context.rb |