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:

  1. Basic setup example to graph and Django;
  2. Working with models. Input types. Nested nodes and mutations;
  3. Validation of client’s input and working with Django validators;
  4. Error handling;
  5. Authorization and authentication. Permissions;
  6. __typename__ resolving. Why should you care?;
  7. Relations and ENUMS. It can be tricky;
  8. Unit testing.

Full blog post is here:

Like what you read? Give Andrey Zarubin a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.