Skip to content

Commit

Permalink
Merge pull request #19 from luisincrespo/master
Browse files Browse the repository at this point in the history
Use context option (if provided)
  • Loading branch information
syrusakbary committed Dec 14, 2016
2 parents 838673e + 31de8cc commit 021e9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_graphql/graphqlview.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_root_value(self, request):
return self.root_value

def get_context(self, request):
return request
return self.context or request

def get_middleware(self, request):
return self.middleware
Expand Down

0 comments on commit 021e9a2

Please sign in to comment.