This is an example project for using GraphQL with Flask using Graphene-SQLAlchemy.
install the packages.
pip install -r requirements.txt
Go to the root dir and run the below line in the terminal.
python manage.py runserver -h 0 -p 8888
Go to http://localhost:8888/graphql/ to try GraphQL.
mutation {
createUser(username: "test") {
user {
username
}
ok
}
}
{
users {
id,
username
}
}