batch_loader v0.1.0-beta.1 BatchLoader.Absinthe View Source

A module which integrates BatchLoader with Absinthe.

Link to this section Summary

Functions

Creates a BatchLoader struct and calls the BatchLoader.Absinthe.Middleware.

Link to this section Functions

Link to this function

for(item, batch, opts \\ [default_value: {:ok, nil}])

View Source

Creates a BatchLoader struct and calls the BatchLoader.Absinthe.Middleware.

Example

iex> BatchLoader.Absinthe.for(post.user_id, batch_function)