Skip to content

Commit 87d4556

Browse files
committed
Updated Flask-GraphQL requirement
1 parent 235a24e commit 87d4556

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/pages/community.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Django integration:
2222
- **django-graphiql**: [Source Code][7] - [PyPI package][8]
2323

2424
Flask integration:
25-
- **graphql-flask**: [Source Code][9] - [PyPI package][10]
25+
- **Flask-GraphQL**: [Source Code][9] - [PyPI package][10]
2626

2727
## Other related projects
2828

@@ -40,5 +40,5 @@ Flask integration:
4040
[6]: https://pypi.python.org/pypi/graphql-django-view
4141
[7]: https://github.com/graphql-python/django-graphiql
4242
[8]: https://pypi.python.org/pypi/django-graphiql
43-
[9]: https://github.com/graphql-python/graphql-flask
44-
[10]: https://pypi.python.org/pypi/graphql-flask
43+
[9]: https://github.com/graphql-python/flask-graphql
44+
[10]: https://pypi.python.org/pypi/Flask-GraphQL

docs/pages/docs/sqlalchemy/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pip install graphene[sqlalchemy]
3030

3131
# Install Flask and GraphQL Flask for exposing the schema through HTTP
3232
pip install Flask
33-
pip install graphql-flask
33+
pip install Flask-GraphQL
3434
```
3535

3636
## Defining our models
@@ -121,12 +121,12 @@ Unlike a RESTful API, there is only a single URL from which GraphQL is accessed.
121121

122122
We are going to use Flask to create a server that expose the GraphQL schema under `/graphql` and a interface for querying it easily: GraphiQL under `/graphiql`.
123123

124-
Afortunately for us, the library `graphql-flask` that we installed previously is making the task quite easy.
124+
Afortunately for us, the library `Flask-GraphQL` that we installed previously is making the task quite easy.
125125

126126
```python
127127
# flask_sqlalchemy/app.py
128128
from flask import Flask
129-
from graphql_flask import GraphQL
129+
from flask_graphql import GraphQL
130130

131131
from models import db_session
132132
from schema import schema, Department

examples/flask_sqlalchemy/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from database import db_session, init_db
33

44
from schema import schema
5-
from graphql_flask import GraphQL
5+
from flask_graphql import GraphQL
66

77
app = Flask(__name__)
88
app.debug = True
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
graphene[sqlalchemy]
2-
graphql_flask==1.1.0
32
SQLAlchemy==1.0.11
43
Flask==0.10.1
4+
Flask-GraphQL==1.1.0

0 commit comments

Comments
 (0)