batch-loader v2.0.1 Release Notes

Release Date: 2021-02-18 // 8 months ago
    • ๐Ÿ’Ž Fixed: Compatibility with GraphQL and Ruby 3. #71
    • โœ… Changed: GraphQL tests. 03d5153

Previous changes from v1.5.0

    • ๐Ÿ‘ Added: Support for GraphQL Interpreter. #62
    • ๐Ÿ—„ Deprecated: BatchLoader.for in GraphQL. #62

    Please use BatchLoader::GraphQL.for instead:

    field :user, UserType, null: false
    
    def user # resolver
      BatchLoader::GraphQL.for...
    end
    

    Or wrap a BatchLoader instance with BatchLoader::GraphQL.wrap:

    field :user, UserType, null: false
    
    def user # resolver
      BatchLoader::GraphQL.wrap(lazy_user)
    end
    
    def lazy_user
      BatchLoader.for...
    end