Sample project of a Django API using GraphQL
Install dependencies using Poetry
$ poetry install
Run Django migrations (make sure to have PYTHONPATH
and DJANGO_SETTINGS_MODULE
envvars properly set)
$ django-admin migrate
Load initial data
$ django-admin loaddata initial_data.json
Runserver
$ django-admin runserver
Accessing to localhost:8000/graphql
in your web browser will allow you to start using the GraphQL playground and perform some queries 🎉