News for hackers. Stuff that matters.
Re:Ban 1+N in Django by akx on Monday March 27, 2023 @05:05AM (#35324481)
A dataloader sort of pattern tends to be on the implementing end of GraphQL.
Re:Ban 1+N in Django by eurasiantiger on Monday March 27, 2023 @07:11AM (#35325196)
Indeed, the parent was describing built-in features of the Apollo GraphQL Client, such as entity-level caching in the frontend.

However, a dataloader pattern can also be useful when implementing custom resolvers for a GraphQL API. For this purpose, Apollo provides data sources which handle caching at request level.