vnovick / ama

Ask me anything!
https://github.com/vnovick/ama/issues?q=is%3Aissue+is%3Aclosed
2 stars 1 forks source link

Why is the concept of N+1 important for Graph QL and Hasura independently? #1

Open jonas-kgomo opened 4 years ago

jonas-kgomo commented 4 years ago

For context here is a study of the N+1 problem and data-loader query problem

wtrocki commented 4 years ago

Dataloader can add complexity. What I see is that current community moving towards understanding GraphQL better and trying to make it work same way as REST does. To do that developers need to:

I truly think that Hasura approach is way more efficient and sophisticated than dataloader. Since hasura does things only for postgress there is need for more generic solution to make it popular and show obvious benefits

Questions:

Do you think that root level resolvers are te good idea?

What are your opinions about libraries like GraphQL-Query-Mapper that allow developers to use root level resolvers?

https://github.com/aerogear/graphql-query-mapper

Is there value to modify execute method of graphql layer to ignore execution of nested resolvers?