Re:Ban 1+N in Django
by eurasiantiger on Monday March 27, 2023 @01:03AM
(#35323021)
So, in other words, you want GraphQL.
[ Parent
| on HN ]
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.