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): 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):