README.md in graphql-batch-0.4.1 vs README.md in graphql-batch-0.4.2

- old
+ new

@@ -141,14 +141,14 @@ `.then` can optionally take two lambda arguments, the first of which is equivalent to passing a block to `.then`, and the second one handles exceptions. This can be used to provide a fallback ```ruby def product(id:) # Try the cache first ... - CacheLoader.for(Product).load(args["id"]).then(nil, lambda do |exc| + CacheLoader.for(Product).load(id).then(nil, lambda do |exc| # But if there's a connection error, go to the underlying database raise exc unless exc.is_a?(Redis::BaseConnectionError) logger.warn err.message - RecordLoader.for(Product).load(args["id"]) + RecordLoader.for(Product).load(id) end) end ``` ## Unit Testing