Added support for custom executor settings

This commit is contained in:
Syrus Akbary 2015-10-10 17:35:32 -07:00
parent 2b6a253b78
commit 63f320e92b

View File

@ -75,7 +75,7 @@ class Schema(object):
def types(self):
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()
return self.executor.execute(
self.schema,
@ -83,6 +83,7 @@ class Schema(object):
root=self.query(root),
args=vars,
operation_name=operation_name,
**kwargs
)
def introspect(self):