Building GraphQL API with Python & Django Part #1: Introduction

This is the first tutorial of the tutorial series, we will be using Graphene & Django to build the GraphQL API

Welcome! This tutorial guides you through building a fully-featured GraphQL-server from scratch. We will be building an example that's closer to "Real World", complete with authentication, pagination, and more.

If you are new to the GraphQL, it is recommended that you go through below tutorial to understand the concepts of GraphQL before starting this tutorial series : A Comprehensive Guide to Learn GraphQL & Its Core Concepts with examples

Note: The final project for this tutorial can be found on Github. You can always use it as a reference whenever you get lost throughout the course of the following chapters.

Ready? Let's dive in! 🚀
. . .


GraphQL is the rising star of backend technologies. It replaces REST as an API design paradigm and is becoming the new standard for exposing the data and functionality of a server. In this tutorial, you’ll learn how to build an idiomatic GraphQL server entirely from scratch. You are going to use the following technologies:
. . .

What to expect

The goal of this tutorial is to build an API for Star Wars. Here is a quick rundown of what to expect in this tutorial. You’ll start by learning the basics of how a GraphQL server works, simply by defining a GraphQL schema for the server and writing corresponding resolver functions. You’ll start by implementing signup/login functionality that enables users to authenticate against the API. This will also allow you to check the permissions of your users for certain API operations. Lastly, you’ll allow the consumers of the API to constrain the list of items they retrieve from the API by adding filtering and pagination capabilities to it.

complete list of chapters in this tutorial series can be found below:
. . .


This tutorial assumes that you're familiar with both Python & GraphQL. If you need to brush up on GraphQL, we recommend going through the tutorial. Let’s get started 🚀
. . .

On a mission to build Next-Gen Community Platform for Developers