Django with GraphQL. Beyond the simple query.
I am sure you are all familiar with problems when RESTful API doesn’t fit perfectly. Long story short, my team decided to try GraphQL. It takes two days to pick it up if you are already familiar with DRF.
This blog post assumes that you have already done your homework, familiar with basics of GraphQL and its implementation in Django. Here is what I plan to cover:
- Basic setup example to graph and Django;
- Working with models. Input types. Nested nodes and mutations;
- Validation of client’s input and working with Django validators;
- Error handling;
- Authorization and authentication. Permissions;
- __typename__ resolving. Why should you care?;
- Relations and ENUMS. It can be tricky;
- Unit testing.
Full blog post is here: https://anvileight.com/en/blog/2017/07/11/graphql-with-python-django-advanced/