-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples don't work #30
Comments
I faced similar issues as well and @Morreski 's example helped me fix the issue somewhat. |
Any plans on updating the documents or would you accept a pull request that updates the examples? |
Same problem for me. @Morreski solution works for me. |
Same problem |
Same problem. @Morreski 's tip worked. However this might be related as well: |
With modern app.add_url_rule(
'/graphql',
view_func=GraphQLView.as_view(
'graphql',
schema=schema,
graphiql=True,
get_context=lambda: {'session': db.session}
)
) |
@yoursdearboy Super!! Your (lambda) solution worked for me using the Dec 2020 version of graphene. If anyone wants to explore a minimal running version, code and setup instructions are here. |
Hi,
I followed the flask-sqlalchemy examples here (and the snippets in the project's Readme as well) but it didn't work out of the box. I had the following exception:
AttributeError: 'Request' object has no attribute 'get'
when trying to request from Graphiql.After some fiddling with flask-sqlalchemy i solved the bug by passing a
context
argument toGraphQLView.as_view
.Here is my full url declaration:
I don't know if this is the proper way to fix the problem, but thought it'll be useful to tell you about it.
The text was updated successfully, but these errors were encountered: