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 : Graphql.SelectionSet.SelectionSet decodesTo Graphql.Operation.RootQuery -> String
Serialize a query selection set into a string for a GraphQL endpoint.
serializeQueryWithOperationName : String -> Graphql.SelectionSet.SelectionSet decodesTo Graphql.Operation.RootQuery -> String
Serialize a query selection set with an operation name into a string for a GraphQL endpoint.
serializeMutation : Graphql.SelectionSet.SelectionSet decodesTo Graphql.Operation.RootMutation -> String
Serialize a mutation selection set into a string for a GraphQL endpoint.
serializeMutationWithOperationName : String -> Graphql.SelectionSet.SelectionSet decodesTo Graphql.Operation.RootMutation -> String
Serialize a mutation selection set with an operation name into a string for a GraphQL endpoint.
serializeSubscription : Graphql.SelectionSet.SelectionSet decodesTo Graphql.Operation.RootSubscription -> String
Serialize a subscription selection set into a string for a GraphQL endpoint.
serializeQueryForUrl : Graphql.SelectionSet.SelectionSet decodesTo Graphql.Operation.RootQuery -> String
Serialize a query selection set into a string with minimal whitespace. For use with a GET request as a query param.
serializeQueryForUrlWithOperationName : String -> Graphql.SelectionSet.SelectionSet decodesTo Graphql.Operation.RootQuery -> String
Serialize a query selection set with an operation name into a string with minimal whitespace. For use with a GET request as a query param.
decoder : Graphql.SelectionSet.SelectionSet decodesTo scope -> Json.Decode.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.