Sha256: dad604e17a43c42d20bcb0edcba4345e255320606040d61a57f7354a46a499f3
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 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 def async(&block) execution_strategy.async(block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-0.8.1 | lib/graphql/query/context.rb |