-
Notifications
You must be signed in to change notification settings - Fork 827
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
Middleware example fails in doc #812
Comments
@leebenson good spot! Could you submit a PR that fixes it? You can find instructions on how to build the docs in the README: https://github.com/graphql-python/graphene#documentation |
just made a PR for the middleware documentation covering its configuration in settings.py #820 |
Doesn't look like this has made it into the docs yet at https://docs.graphene-python.org/en/latest/execution/middleware/ |
The documentation still shows the old signature for the resolve method on middleware classes. EDIT: api.add_url_rule(
"",
view_func=GraphQLView.as_view(
name="graphql",
schema=schema,
middleware=[ErrorMiddleware]
)
) Once I actually called the constructor for the class within the middleware list argument (ie: |
From http://docs.graphene-python.org/en/latest/execution/middleware/#example:
Results in:
It was only due to stumbling across #612 that I read this:
Which works:
The text was updated successfully, but these errors were encountered: