Closed ZirgVoice closed 1 year ago
Why weren't you able to use DataLoader to address this? You can definitely create a resolver function that uses a DataLoader that returns a single object (not an array), thereby addressing the N+1 problem.
Oh right, I forgot about that, thanks!
In schema in key i can't return an array
This is necessary to solve the N+1 problem
Now I'm using graphql-transform-federation it has batchDelegateToSchema from graphql-tools, I tried to do something similar via DataLoader but I can't return the result because it's an array