harmboschloo/graphql-to-elm-package/1.0.1

GraphQL.PlainBatch

Batch operations together in one request. Returns a Response for every operation.

batch (\a b c -> ( a, b, c ))
    |> query operation1
    |> query operation2
    |> mutation operation3
type Batch a
batch : (Response e a -> b) -> Batch (Response e a -> b)
query : Operation Query e a -> Batch (Response e a -> b) -> Batch b
mutation : Operation Mutation e a -> Batch (Response e a -> b) -> Batch b

Mapping

map : (a -> b) -> Batch a -> Batch b

Convert the batch value.

JSON

encode : Batch a -> Value

Encode the batch operations for a request.

decoder : Batch a -> Decoder a

Decoder for the response of a batch request.