03 - Introduction to data loaders in GraphQL and why to use them

preview_player
Показать описание
Building a GraphQL API with Nodejs and TypeScript around the JSON placeholder API.

It's a good idea to add the resolvers in the context
I forgot to do this in the videos...

playlist:

slides:

Lee Byron:

Code:

Links:

00:00 The N + 1 query problem
01:02 Intro to Data Loaders and why to use them
07:30 Creating our first data loader to batch requests
18:06 More complex loader example

#graphql #graphqlapi #graphqlyoga
Рекомендации по теме
Комментарии
Автор

This seems silly. You could send a single request with the criteria for the entry point and let the server return N results.

johngrant
Автор

Bro, you should stop doing this and dive into Go/distributed stuff OR cloud stuff. Don't hangout in this area.

AntonioLopez