Method: GraphQL::Query::Context::FieldResolutionContext#initialize
- Defined in:
- lib/graphql/query/context.rb
#initialize(context, key, irep_node, parent, object) ⇒ FieldResolutionContext
Returns a new instance of FieldResolutionContext.
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 |
# File 'lib/graphql/query/context.rb', line 266 def initialize(context, key, irep_node, parent, object) @context = context @key = key @parent = parent @object = object @irep_node = irep_node @field = irep_node.definition @parent_type = irep_node.owner_type @type = field.type # This is needed constantly, so set it ahead of time: @query = context.query @schema = context.schema @tracers = @query.tracers # This hack flag is required by ConnectionResolve @wrapped_connection = false @wrapped_object = false end |