dillonkearns/elm-graphql/4.3.0

NOTE: the latest version is 5.0.12

Graphql.Document

You'll usually want to use Graphql.Http to perform your queries directly. This package provides low-level functions for generating GraphQL documents that are helpful for debugging and demo purposes.

serializeQuery : SelectionSet decodesTo RootQuery -> String

Serialize a query selection set into a string for a GraphQL endpoint.

Serialize a mutation selection set into a string for a GraphQL endpoint.

Serialize a subscription selection set into a string for a GraphQL endpoint.

Serialize a query selection set into a string with minimal whitespace. For use with a GET request as a query param.

decoder : SelectionSet decodesTo typeLock -> Decoder decodesTo

Decoder a response from the server. This low-level function shouldn't be needed in the majority of cases. Instead, the high-level functions in Graphql.Http should be used.