Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoshiya0503/flask-graphql-example
graphQL example API in flask
https://github.com/yoshiya0503/flask-graphql-example
flask flask-graphql flask-sqlalchemy graphene-sqlalchemy graphql grapnene sqlalchemy
Last synced: about 2 months ago
JSON representation
graphQL example API in flask
- Host: GitHub
- URL: https://github.com/yoshiya0503/flask-graphql-example
- Owner: yoshiya0503
- License: mit
- Created: 2019-11-29T11:56:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-20T02:58:32.000Z (almost 4 years ago)
- Last Synced: 2024-04-11T22:52:38.007Z (9 months ago)
- Topics: flask, flask-graphql, flask-sqlalchemy, graphene-sqlalchemy, graphql, grapnene, sqlalchemy
- Language: Python
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-graphQL-example
graphQL example API in flask## build and up
```
docker-compose build
docker-compose up
```## database migrate
```
docker-compose exec api flask db upgrade
```## seed data
```
docker-compose exec api flask seed sample
```## try it
you can try it graphiql
```
{
users {
edges {
node {
id
name
githubId
avatar
photos {
edges {
node {
id
url
category
}
}
}
}
}
}
}
```## used packages
```
flask = "*"
flask-graphql = "*"
graphene = ">=2.0"
graphene-sqlalchemy = "*"
flask-sqlalchemy = "*"
pymysql = "*"
inflection = "*"
flask-migrate = "*"
```