Learn how to implement data loaders in a .NET GraphQL API using Hot Chocolate.
In this video, I demonstrate the N+1 problem and implement a data loader to eliminate the N+1 problem and optimize our GraphQL resolvers.
In this series, I demonstrate how to build a GraphQL API in .NET with the Hot Chocolate NuGet package. GraphQL is a query language used for APIs that ultimately simplifies client development. Client applications only need to hit a single endpoint (usually "/graphql") in order to query the EXACT data that they need. Although client-side GraphQL development is simple, server-side GraphQL development is a bit more difficult. The goal of this series is to show how to overcome those difficulties!
TIMESTAMPS:
0:00 - Introduction
0:51 - Removing Database Joins
2:31 - Fetching Instructors from the Database
6:51 - Demoing the N+1 Problem
8:43 - Adding the Data Loader
12:04 - Using the Data Loader
14:54 - Summary/Conclusion
HOT CHOCOLATE DOCS: [ Ссылка ]
SOURCE CODE: [ Ссылка ]
OTHER LINKS:
Become a Member: [ Ссылка ]
Donations: [ Ссылка ]
Ещё видео!