README.md in graphql-batch-0.3.0 vs README.md in graphql-batch-0.3.1

- old
+ new

@@ -44,18 +44,19 @@ ids.each { |id| fulfill(id, nil) unless fulfilled?(id) } end end ``` -Use the batch execution strategy with your schema +Use lazy execution and instrumentation by `GraphQL::Batch` in your schema ```ruby MySchema = GraphQL::Schema.define do query MyQueryType + + lazy_resolve(Promise, :sync) + instrument(:query, GraphQL::Batch::Setup) end -MySchema.query_execution_strategy = GraphQL::Batch::ExecutionStrategy -MySchema.mutation_execution_strategy = GraphQL::Batch::MutationExecutionStrategy ``` The loader class can be used from the resolve proc for a graphql field by calling `.for` with the grouping arguments to get a loader instance, then call `.load` on that instance with the key to load. ```ruby @@ -131,10 +132,10 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. ## Contributing -Bug reports and pull requests are welcome on GitHub at https://github.com/Shopify/graphql-batch. +See our [contributing guidelines](CONTRIBUTING.md) for more information. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).