Module
GraphQL.Client.Alias.Dynamic
- Package
- purescript-graphql-client
- Repository
- OxfordAbstracts/purescript-graphql-client
#Spread Source
data Spread alias args fieldsUsed for creating spread aliases dynamically eq:
mutation myUpdates {
_1: update_users(where: {id : 1}, _set: { value: 10 }) { affected_rows }
_2: update_users(where: {id : 2}, _set: { value: 15 }) { affected_rows }
_3: update_users(where: {id : 3}, _set: { value: 20 }) { affected_rows }
}
Constructors
#SpreadRes Source
newtype SpreadRes aThe return type of a query made with a dynamic alias spread This type has encodes/decodes as an object with "_n" as a key
Constructors
Instances
Generic (SpreadRes a) _Newtype (SpreadRes a) _(Eq a) => Eq (SpreadRes a)(Ord a) => Ord (SpreadRes a)(Show a) => Show (SpreadRes a)(DecodeHasura a) => DecodeHasura (SpreadRes a)(DecodeJson a) => DecodeJson (SpreadRes a)(EncodeHasura a) => EncodeHasura (SpreadRes a)(EncodeJson a) => EncodeJson (SpreadRes a)
#decodeSpreadRes Source
decodeSpreadRes :: forall a. (Json -> Either JsonDecodeError a) -> Json -> Either JsonDecodeError (SpreadRes a)- Modules
- GraphQL.
Client. Alias - GraphQL.
Client. Alias. Dynamic - GraphQL.
Client. Args - GraphQL.
Client. Args. AllowedMismatch - GraphQL.
Client. ArrayOf - GraphQL.
Client. AsGql - 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. Directive - GraphQL.
Client. Directive. Definition - GraphQL.
Client. Directive. Location - GraphQL.
Client. ErrorBoundary - GraphQL.
Client. GqlError - GraphQL.
Client. GqlType - GraphQL.
Client. ID - GraphQL.
Client. NullArray - GraphQL.
Client. Operation - 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. WatchQuery - GraphQL.
Hasura. ComparisonExp - GraphQL.
Hasura. Decode - GraphQL.
Hasura. DecodeLiberal - GraphQL.
Hasura. Encode