graphQL example API in flask
docker-compose build
docker-compose up
docker-compose exec api flask db upgrade
docker-compose exec api flask seed sample
you can try it graphiql
{
users {
edges {
node {
id
name
githubId
avatar
photos {
edges {
node {
id
url
category
}
}
}
}
}
}
}
flask = "*"
flask-graphql = "*"
graphene = ">=2.0"
graphene-sqlalchemy = "*"
flask-sqlalchemy = "*"
pymysql = "*"
inflection = "*"
flask-migrate = "*"