What is GraphQL?

What is GraphQL?

API Design & App Setup

API Design & App Setup

Schema & Resolvers - Basics

Schema & Resolvers - Basics

Using Types & Data

Using Types & Data

Adding a Database & Models

Adding a Database & Models

Adding Users & Relations

Adding Users & Relations

Dynamic Relations

Dynamic Relations

Adding Bookings

Adding Bookings

Refactoring our Code

Refactoring our Code

Adding User Authentication

Adding User Authentication

The React Frontend

The React Frontend

Adding a Navbar

Adding a Navbar

Adding Authentication for API Access

Adding Authentication for API Access

Using the Token

Using the Token

Adding a Modal

Adding a Modal

# What is GraphQL?

What is GraphQL and why would you use it?

GraphQL is a query language invented by Facebook. It's a query language that is NOT used to query data from a database though. Instead, it's exposed via an API to frontend applications (SPAs, mobile apps).

It's more flexible than REST APIs because it allows frontend clients to request exactly the data format the client needs. REST APIs on the other hand typically send back a fixed data format that often contains redundant data which is not required by the client.

Watch the above video to learn more about the advantages of GraphQL APIs and how such an API is implemented in practice.

WE GOT MORE HELPFUL CONTENT!

Node.js - The Complete Guide

Node.js - The Complete Guide

React.js - The Complete Guide

React.js - The Complete Guide

MongoDB - The Complete Guide

MongoDB - The Complete Guide