mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 19:43:56 +03:00
Added support for custom executor settings
This commit is contained in:
parent
2b6a253b78
commit
63f320e92b
|
@ -75,7 +75,7 @@ class Schema(object):
|
||||||
def types(self):
|
def types(self):
|
||||||
return self._internal_types
|
return self._internal_types
|
||||||
|
|
||||||
def execute(self, request='', root=None, vars=None, operation_name=None):
|
def execute(self, request='', root=None, vars=None, operation_name=None, **kwargs):
|
||||||
root = root or object()
|
root = root or object()
|
||||||
return self.executor.execute(
|
return self.executor.execute(
|
||||||
self.schema,
|
self.schema,
|
||||||
|
@ -83,6 +83,7 @@ class Schema(object):
|
||||||
root=self.query(root),
|
root=self.query(root),
|
||||||
args=vars,
|
args=vars,
|
||||||
operation_name=operation_name,
|
operation_name=operation_name,
|
||||||
|
**kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
def introspect(self):
|
def introspect(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user