Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

No middleware parameter

Open
#139 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
flask, graphql, python
Domain
api, backend

Research direction

Start by reading the GraphQLView documentation and graphql_server/flask/views.py, which the issue identifies as disagreeing about the middleware parameter. Determine whether the intended resolution is to correct the documentation or support the documented parameter; done means the documentation and BaseGraphQLView behavior agree and the reported TypeError case is addressed.

Written by the indexing model from the issue text.

Description

The documentation about GraphQLView list middleware as a parameter, but it doesn't works:

TypeError: BaseGraphQLView.__init__() got an unexpected keyword argument 'middleware'

Looking at the code in graphql_server/flask/views.py confirms that the parameter doesn't exists. Is there another way to pass middlewares?

Dominant language
Python
Stars
134
Forks
70
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from graphql-python/graphql-server

All issues in graphql-python/graphql-server

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.