Pagination - GRAPHQL API IN .NET w/ HOT CHOCOLATE #7.1
ฝัง
- เผยแพร่เมื่อ 29 ก.ค. 2024
- Learn how to implement pagination in a .NET GraphQL API using Hot Chocolate.
In this video, I introduce GraphQL cursor-based and offset-based pagination. I also demonstrate how to customize Hot Chocolate pagination. Lastly, I add some optimizations to map paginated GraphQL queries to our Entity Framework queries.
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:35 - Cursor-Based Pagination
4:17 - Getting the Total Count
5:12 - Offset-Based Pagination
7:25 - Paginating Database Queries
11:58 - Conclusion
HOT CHOCOLATE DOCS: chillicream.com/docs/hotchoco...
SOURCE CODE: github.com/SingletonSean/grap...
OTHER LINKS:
Become a Member: / @singletonsean
Donations: www.paypal.com/biz/fund?id=UB... - วิทยาศาสตร์และเทคโนโลยี