dillonkearns/elm-graphql/1.5.0

NOTE: the latest version is 5.0.12

Graphql.Internal.Builder.Object

WARNING Graphql.Interal modules are used by the @dillonkearns/elm-graphql command line code generator tool. They should not be consumed through hand-written code.

Internal functions for use by auto-generated code from the @dillonkearns/elm-graphql CLI.

String
-> List Argument
-> Decoder decodesTo
-> Field decodesTo lockedTo

Refer to a field in auto-generated code.

selection : (a -> constructor) -> SelectionSet (a -> constructor) typeLock

Used to create the selection functions in auto-generated code.

String
-> List Argument
-> SelectionSet a objectTypeLock
-> (Decoder a -> Decoder b)
-> Field b lockedTo

Refer to an object in auto-generated code.

List (FragmentSelectionSet typeSpecific typeLock)
-> (Maybe typeSpecific -> a -> b)
-> SelectionSet (a -> b) typeLock

Used to create the selection functions in auto-generated code for interfaces.

List (FragmentSelectionSet typeSpecific typeLock)
-> (Maybe typeSpecific -> a)
-> SelectionSet a typeLock

Used to create the selection functions in auto-generated code for unions.

scalarDecoder : Decoder String

Decoder for scalars for use in auto-generated code.

List (FragmentSelectionSet decodesTo typeLock)
-> SelectionSet decodesTo typeLock

Used to create the selection functions in auto-generated code for exhuastive fragments.

(decodesTo -> a -> b)
-> List (FragmentSelectionSet decodesTo typeLock)
-> SelectionSet (a -> b) typeLock

Used to create the selection functions in auto-generated code for exhuastive fragments.

String
-> SelectionSet decodesTo selectionLock
-> FragmentSelectionSet decodesTo fragmentLock

Used to create FragmentSelectionSets for type-specific fragmentsin auto-generated code.