Developing GraphQL API in Django using Graphene

Build GraphQL schema, queries, and mutations in Django using graphene library

Nisarg Shah

APIs Databases Django PostgreSQL Python 3

See in schedule

GraphQL technology has become popular nowadays. While developing REST APIs, there are many things that developers need to take into consideration. There are multiple endpoints and over-fetching is the main problem of REST. GraphQL offers a unique approach and architecture for developing APIs. How is that efficient?

While using GraphQL, a client can request the data which is needed. While building APIs with GraphQL, the schema can be fixed, and then the teams can work independently as the structure is fixed which will be used for the application. It is an alternative for building APIs in place of REST. It’s a query language that can work as a medium between the frontend and backend.

The journey to develop GraphQL APIs in python needs some requirements and knowledge. We will be building APIs in the Django framework using a graphene library which includes many features of GraphQL such as ObjectTypes, Queries, Mutations, etc. We will start by understanding these concepts followed by some code. This includes detailed information about the Query class, how queries are resolved, and where to write business logic, how pagination can be incorporated with queries would be included. Also, it will include the information about the Mutation class, arguments needed for mutation, and what type of response can be returned on successful operations.

Learning outcomes would be the understanding of code and building GraphQL APIs using graphene in a proper and structured way.

Type: Talk (30 mins); Python level: Beginner; Domain level: Beginner


Nisarg Shah

I am currently pursuing my B.Tech Degree in field of Information and Communication Technology. I am passionate about technology and building solutions for real life problems. Also I am interested in problem solving and buidling softwares which can be used by users. I always hunt and look around for the innovative project to work on and challenge my technical skills to learn more. I mostly code as Backend Developer and build amazing systems.

I am the Co-Founder of Tweetozy (https://tweetozy.com/) and Co-Creator of CoursesAround (http://coursesaround.com/). I have developed programs and algorithms in multiple languages. I do not restrict myself by any coding language, rather focus more on the approach of solving the problem.

Connect with me at :
Linkedin : https://www.linkedin.com/in/nisargshah14/
Github : https://github.com/nisarg1499
Website : http://iamnisarg.in/