Building a CRUD API with FastAPI, GraphQL, and PostgreSQL

preview_player
Показать описание
In this tutorial, we'll explore how to create a powerful CRUD (Create, Read, Update, Delete) API using FastAPI, GraphQL, and PostgreSQL. FastAPI, a modern Python web framework, provides an efficient and intuitive way to build APIs. By combining it with the flexibility of GraphQL and the reliability of PostgreSQL, we can create a seamless and feature-rich API that allows us to perform various operations on our data.

🚀 What You'll Learn:

- Setting up a FastAPI project and integrating PostgreSQL for data storage.
- Building a GraphQL schema and defining types for your API operations.
- Implementing CRUD functionalities (Create, Read, Update, Delete) using GraphQL.

Whether you're a seasoned backend developer or new to web development, this tutorial will guide you step-by-step through the process of creating a full-featured API using FastAPI, GraphQL, and PostgreSQL.

#fastapi #graphql

TimeStamp

00:00:00 Introduction
00:03:27 Config
00:10:36 Model layer
00:11:45 Repository layer
00:18:35 Service layer
00:24:25 Graphql layer
00:29:04 Testing

You can get code here:
Рекомендации по теме
Комментарии
Автор

can we authenticate with only graphql model or we need to add rest route, to manage token, protected route etc ?

Razkazar
Автор

god job sir. can we add security (jwt, etc) and how to manage multi file of Query file?
thankyou

muhamadarwanimaulana
Автор

I really like the way you type the code and the way you use spacing, it's really senior code

pintokatendejonathan
Автор

oh man, what a job, well done
love your work

muzaffarmirzochoriyev