jackrobertscott / graphql-api-demo-180906

🔥 Demo implementation of a production-ready API using GraphQL.
96 stars 24 forks source link

Your demo is good, but how do you deal with the N + 1 problem? #3

Open liuxsen opened 5 years ago

jackrobertscott commented 5 years ago

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? 😄

arialpew commented 5 years ago

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

liuxsen commented 5 years ago

i think this just a demo. need most thing with a project. so will you continue this repo?

prinze77 commented 5 years ago

so will you continue this repo?