Hacker News new | ask | show | jobs
by kevsim 2153 days ago
Not saying it's not still ridiculous for your use case, but if you're using Apollo as your GraphQL server, you can still do your joins without data loaders. The 4th argument passed to your resolvers [0] allows you to check if children properties have been requested and then you can use joins to "pre fetch" those without data loaders. Haven't done it myself yet but someone told me about it on HN a while back.

0: https://www.apollographql.com/docs/apollo-server/data/resolv...