Skip to content

ivanzugnoni/django-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-graphql

Sample project of a Django API using GraphQL

Setup

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 🎉

Examples

--> Query with Filtering, Ordering and Nested nodes

--> Mutations (create - update - delete)

About

Sample project of a Django API using GraphQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages