Module
GraphQL.Client.Union
- Package
- purescript-graphql-client
- Repository
- OxfordAbstracts/purescript-graphql-client
#UnionReturned Source
newtype UnionReturned :: Row Type -> Type
newtype UnionReturned r
Constructors
UnionReturned (Variant r)
Instances
Newtype (UnionReturned r) _
(RowToList r rl, DecodeUnion rl r) => DecodeJson (UnionReturned r)
(RowToList r rl, DecodeHasuraUnion rl r) => DecodeHasura (UnionReturned r)
#DecodeUnion Source
class DecodeUnion :: RowList Type -> Row Type -> Constraint
class DecodeUnion (rl :: RowList Type) r where
Members
decodeUnion :: String -> Json -> Proxy rl -> Either JsonDecodeError (Variant r)
Instances
(IsSymbol l, Lacks l r, DecodeJson ty, DecodeUnion rl r, Cons l ty r r', Cons l ty () rd, Union r rd r') => DecodeUnion (Cons l ty rl) r'
DecodeUnion Nil r
#DecodeHasuraUnion Source
class DecodeHasuraUnion :: RowList Type -> Row Type -> Constraint
class DecodeHasuraUnion (rl :: RowList Type) r where
Members
decodeHasuraUnion :: String -> Json -> Proxy rl -> Either JsonDecodeError (Variant r)
Instances
(IsSymbol l, Lacks l r, DecodeHasura ty, DecodeHasuraUnion rl r, Cons l ty r r', Cons l ty () rd, Union r rd r') => DecodeHasuraUnion (Cons l ty rl) r'
DecodeHasuraUnion Nil r
#decodeJsonUnionWith Source
decodeJsonUnionWith :: forall (rl :: RowList Type) (r :: Row Type). (String -> Json -> Proxy rl -> Either JsonDecodeError (Variant r)) -> Json -> Either JsonDecodeError (UnionReturned r)
#failedAtTypename Source
failedAtTypename :: forall x y a. String -> x -> y -> Either JsonDecodeError a
#__typename Source
__typename :: String
- Modules
- Data.
GraphQL. AST - Data.
GraphQL. Parser - GraphQL.
Client. Alias - GraphQL.
Client. Alias. Dynamic - GraphQL.
Client. Args - GraphQL.
Client. BaseClients. Affjax. Internal - GraphQL.
Client. BaseClients. Affjax. Node - GraphQL.
Client. BaseClients. Affjax. Web - GraphQL.
Client. BaseClients. Apollo - GraphQL.
Client. BaseClients. Apollo. ErrorPolicy - GraphQL.
Client. BaseClients. Apollo. FetchPolicy - GraphQL.
Client. BaseClients. Urql - GraphQL.
Client. CodeGen. GetSymbols - GraphQL.
Client. CodeGen. Js - GraphQL.
Client. CodeGen. Lines - GraphQL.
Client. CodeGen. Query - GraphQL.
Client. CodeGen. Schema - GraphQL.
Client. CodeGen. Template. Enum - GraphQL.
Client. CodeGen. Template. Schema - GraphQL.
Client. CodeGen. Transform. NullableOverrides - GraphQL.
Client. CodeGen. Types - GraphQL.
Client. ID - GraphQL.
Client. Query - GraphQL.
Client. QueryReturns - GraphQL.
Client. SafeQueryName - GraphQL.
Client. Subscription - GraphQL.
Client. ToGqlString - GraphQL.
Client. Types - GraphQL.
Client. Union - GraphQL.
Client. Variable - GraphQL.
Client. Variables - GraphQL.
Client. Variables. TypeName - GraphQL.
Client. WatchQuery - GraphQL.
Hasura. Array - GraphQL.
Hasura. ComparisonExp - GraphQL.
Hasura. Decode - GraphQL.
Hasura. DecodeLiberal - GraphQL.
Hasura. Encode