← All projects

GraphQLBlogAPI

GraphQL blog API with JWT authentication and resolver-level role-based authorization.

Source code

Overview

GraphQLBlogAPI is a blog backend exposed through a GraphQL API instead of REST. Clients can ask for exactly the data they need in a single request.

The challenge

In a blog, different users may do different things: anyone can read, authors can write, and admins can manage everything. These rules have to be enforced on the server, for every field and operation.

How I solved it

Tech

Tech stack