graphql-api-demo
graphql-api-demo copied to clipboard
Your demo is good, but how do you deal with the N + 1 problem?
Hey @liuxsen, I'd like to help you solve this problem but i'm not too sure exactly what you are referring to. Could you please provide a little more detail and i'll do my best to answer your question? 😄
I think he's talking about the N+1 problem related to GraphQL resolver.
https://engineering.shopify.com/blogs/engineering/solving-the-n-1-problem-for-graphql-through-batching
You can solve this problem with caching and batching mechanism : https://github.com/facebook/dataloader
i think this just a demo. need most thing with a project. so will you continue this repo?
so will you continue this repo?