Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 38f7894

Browse files
committed
Allow customizing middleware in GraphQLHandler
1 parent 190c432 commit 38f7894

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

graphene_gae/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
)
1010

1111
__author__ = 'Eran Kampf'
12-
__version__ = '1.0.6'
12+
__version__ = '1.0.7'
1313

1414
__all__ = [
1515
NdbObjectType,

graphene_gae/webapp2/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def post(self):
2323
operation_name=operation_name,
2424
variable_values=variables,
2525
context_value=self._get_context(),
26-
root_value=self._get_root_value())
26+
root_value=self._get_root_value(),
27+
middleware=self._get_middleware())
2728

2829
response = {}
2930
if result.errors:
@@ -90,6 +91,9 @@ def _get_root_value(self):
9091
def _get_context(self):
9192
return self.request
9293

94+
def _get_middleware(self):
95+
return None
96+
9397
def __format_error(self, error):
9498
if isinstance(error, GraphQLError):
9599
return format_graphql_error(error)

0 commit comments

Comments
 (0)