dillonkearns / elm-graphql / Graphql.Internal.Encode

WARNING Graphql.Internal modules are used by the `

null : Value

Encode null

bool : Basics.Bool -> Value

Encode a bool

enum : (a -> String) -> a -> Value

Encode an enum. The first argument is the toString function for that enum.

int : Basics.Int -> Value

Encode an int

list : (a -> Value) -> List a -> Value

Encode a list of Values

string : String -> Value

Encode a string

object : List ( String, Value ) -> Value

Encode a list of key-value pairs into an object

maybe : (a -> Value) -> Maybe a -> Value

Encode a Maybe. Uses encoder for Just, or Encode.null for Nothing.

maybeObject : List ( String, Maybe Value ) -> Value

Encode a list of key-value pairs into an object

optional : Graphql.OptionalArgument.OptionalArgument a -> (a -> Value) -> Maybe Value

Encode a list of key-value pairs into an object

float : Basics.Float -> Value

Encode a float

fromJson : Json.Encode.Value -> Value

Encode directly from Json.Encode.Value. For internal use by custom scalar codecs.

serialize : Value -> String

Low-level function for serializing a Graphql.Internal.Encode.Values.


type Value

Represents an encoded Value