We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a73f11 commit 445b9d9Copy full SHA for 445b9d9
1 file changed
README.md
@@ -161,8 +161,9 @@ class Subscription(graphene.ObjectType):
161
# mutation oject that was published will be passed as
162
# root_value of subscription
163
def resolve_users(self, args, context, info):
164
- query = User.get_query(context)
165
- return query.filter_by(id=info.root_value.get('id'))
+ with app.app_context():
+ query = User.get_query(context)
166
+ return query.filter_by(id=info.root_value.get('id'))
167
```
168
169
#### Client (using Apollo Client library):
0 commit comments