Module

GraphQL.Client.Union

Package
purescript-graphql-client
Repository
OxfordAbstracts/purescript-graphql-client

#GqlUnion Source

newtype GqlUnion :: Row Type -> Typenewtype GqlUnion r

Constructors

Instances

#UnionReturned Source

#DecodeUnion Source

class DecodeUnion :: RowList Type -> Row Type -> Constraintclass DecodeUnion (rl :: RowList Type) r  where

Members

Instances

#DecodeHasuraUnion Source

class DecodeHasuraUnion :: RowList Type -> Row Type -> Constraintclass DecodeHasuraUnion (rl :: RowList Type) r  where

Members

Instances

#decodeJsonUnionWith Source

#decodeUnionWith Source

decodeUnionWith :: forall r rl l ty r' rd. IsSymbol l => Cons l ty r r' => Cons l ty () rd => Union r rd r' => (String -> Json -> Proxy rl -> Either JsonDecodeError (Variant r)) -> (Json -> Either JsonDecodeError ty) -> String -> Json -> Proxy (Cons l ty rl) -> Either JsonDecodeError (Variant r')

#failedAtTypename Source

failedAtTypename :: forall x y a. String -> x -> y -> Either JsonDecodeError a