BatchLoader v1.5.0 Release Notes

    • ๐Ÿ‘ 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