harmboschloo/graphql-to-elm-package/1.0.0

NOTE: the latest version is 1.0.1

GraphQL.Helpers.Decode

Some additional functions that help with decoding JSON.

andMap : Decoder a -> Decoder (a -> b) -> Decoder b

Provide a pipeline for mapping decoders. Can be used for decoding large records.

fromResult : Result Error a -> Decoder a

Turn a decode result into a decoder.

constantString : String -> Decoder String

Decode a constant string.

emptyObject : a -> Decoder a

Decode an empty object {}.