We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb9ea88 commit e25a92dCopy full SHA for e25a92d
graphql/execution/base.py
@@ -272,10 +272,10 @@ def get_field_entry_key(node):
272
273
class ResolveInfo(object):
274
__slots__ = ('field_name', 'field_asts', 'return_type', 'parent_type',
275
- 'schema', 'fragments', 'root_value', 'operation', 'variable_values')
+ 'schema', 'fragments', 'root_value', 'operation', 'variable_values', 'context')
276
277
def __init__(self, field_name, field_asts, return_type, parent_type,
278
- schema, fragments, root_value, operation, variable_values):
+ schema, fragments, root_value, operation, variable_values, context):
279
self.field_name = field_name
280
self.field_asts = field_asts
281
self.return_type = return_type
@@ -285,6 +285,7 @@ def __init__(self, field_name, field_asts, return_type, parent_type,
285
self.root_value = root_value
286
self.operation = operation
287
self.variable_values = variable_values
288
+ self.context = context
289
290
291
def default_resolve_fn(source, args, context, info):
graphql/execution/executor.py
@@ -182,6 +182,7 @@ def resolve_field(exe_context, parent_type, source, field_asts):
182
root_value=exe_context.root_value,
183
operation=exe_context.operation,
184
variable_values=exe_context.variable_values,
185
+ context=context
186
)
187
188
executor = exe_context.executor
graphql/execution/experimental/fragment.py
@@ -57,6 +57,7 @@ def get_resolvers(context, type, field_asts):
57
root_value=context and context.root_value,
58
operation=context and context.operation,
59
variable_values=context and context.variable_values,
60
61
62
if isinstance(field_base_type, GraphQLObjectType):
63
field_fragment = Fragment(
0 commit comments