exAspArk / batch-loader

:zap: Powerful tool for avoiding N+1 DB or HTTP queries
https://engineering.universe.com/batching-a-powerful-way-to-solve-n-1-queries-every-rubyist-should-know-24e20c6e7b94
MIT License
1.04k stars 52 forks source link

This created a regression where resolvers that do not *return* a `BatchLoader::GraphQL` fail to call `BatchLoader::GraphQL` calls that the resolver uses. #36

Closed maletor closed 5 years ago

maletor commented 5 years ago

This created a regression where resolvers that do not return a BatchLoader::GraphQL fail to call BatchLoader::GraphQL calls that the resolver uses.

Originally posted by @maletor in https://github.com/exAspArk/batch-loader/pull/32#issuecomment-464197355

ghost commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

exAspArk commented 5 years ago

Hi @maletor,

Do you use graphql gem versions >= 1.8.7?

Here is the test schema which covers this case:

https://github.com/exAspArk/batch-loader/blob/43e4f62ab5e788e635aeca0a4a01def3f7ee5ca6/spec/fixtures/graphql_schema.rb#L10-L20

ghost commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.