graphql-batch icon indicating copy to clipboard operation
graphql-batch copied to clipboard

A query batching executor for the graphql gem

Results 19 graphql-batch issues
Sort by recently updated
recently updated
newest added

The `resolve` method of a Mutation can make changes to the DB that invalidate any cached Loader results. So, the cache should be cleared after the resolve method has completed,...

We load some records to place into the graphql context before running a query. I'd like to warm the graphql batch loader caches with these records. At the moment I'm...

feature request

In the README, a `CountLoader` example is named, but it's not particularly detailed: ```ruby CountLoader.for(Shop, :smart_collections).load(context.shop_id), CountLoader.for(Shop, :custom_collections).load(context.shop_id), ``` A clear example that demonstrates "You can also batch other stuff,...

documentation

As you can see, it's marked as `:nodoc:` https://github.com/rails/rails/blob/4aa6559beb3be90b48b35a91708181fdd2975462/activerecord/lib/active_record/associations/preloader.rb#L45 I'm not sure how to achieve preloading by only public API though, it's better to avoid using that I think. https://github.com/Shopify/graphql-batch/blob/4ae285e4c2b873a5338ae555abeb5bc58647ec46/examples/association_loader.rb#L38

[This is not a bug, but I don't know where else to put this] I am trying to wrap my head around what I think is a pretty common use...

question

I want to use GraphQL::Batch to load arguments for running mutations and it's not clear to me from reading the documentation if it is safe for me to use GraphQL::Batch.batch...

documentation

Does this project have a changelog? I want to update from 0.3.3 to 0.3.9 and I just want to make sure nothing breaks. Thanks!

documentation

I don't know if this is a bug or just a dumb question, but let me explain it 😄 Starting with this simple type: ``` class Types::ProjectType < Types::BaseNode graphql_name...

cc @Shopify/component-patterns ## Problem We have tended to avoid using promises throughout out codebase and have instead relied on preloading associations. However, as we split our codebase into components that...