CHANGELOG.md in batch-loader-1.4.1 vs CHANGELOG.md in batch-loader-1.5.0

- old
+ new

@@ -10,9 +10,38 @@ #### [Unreleased](https://github.com/exAspArk/batch-loader/compare/v1.4.1...HEAD) * WIP +#### [v1.5.0](https://github.com/exAspArk/batch-loader/compare/v1.4.1...v1.5.0) + +* `Added`: Support for GraphQL Interpreter. [#62](https://github.com/exAspArk/batch-loader/pull/62) +* `Deprecated`: `BatchLoader.for` in GraphQL. [#62](https://github.com/exAspArk/batch-loader/pull/62) + +Please use `BatchLoader::GraphQL.for` instead: + +```rb +field :user, UserType, null: false + +def user # resolver + BatchLoader::GraphQL.for... +end +``` + +Or wrap a BatchLoader instance with `BatchLoader::GraphQL.wrap`: + +```rb +field :user, UserType, null: false + +def user # resolver + BatchLoader::GraphQL.wrap(lazy_user) +end + +def lazy_user + BatchLoader.for... +end +``` + #### [v1.4.1](https://github.com/exAspArk/batch-loader/compare/v1.4.0...v1.4.1) * `Fixes`: Does not allow mutating and corrupting a list of items in a `batch` block. [#46](https://github.com/exAspArk/batch-loader/pull/46) #### [v1.4.0](https://github.com/exAspArk/batch-loader/compare/v1.3.0...v1.4.0)