Module
GraphQL.Client.Types
- Package
- purescript-graphql-client
- Repository
- OxfordAbstracts/purescript-graphql-client
#GqlQuery Source
class (QueryReturns schema query returns, GqlQueryString query, VarsTypeChecked query) <= GqlQuery schema query returns | schema query -> returns
Instances
(QueryReturns schema query returns, GqlQueryString query, VarsTypeChecked query) => GqlQuery schema query returns
#QueryClient Source
class QueryClient baseClient queryOpts mutationOpts | baseClient -> queryOpts mutationOpts where
A type class for making a graphql request client.
Apollo, urql and xhr2/Affjax baseClients are provided.
If you wish to use a different base client,
you can create your own client,
make it an instance of QueryClient
and pass it to query
Members
clientQuery :: queryOpts -> baseClient -> String -> String -> Json -> Aff Json
clientMutation :: mutationOpts -> baseClient -> String -> String -> Json -> Aff Json
defQueryOpts :: baseClient -> queryOpts
defMutationOpts :: baseClient -> mutationOpts
#SubscriptionClient Source
class SubscriptionClient baseClient opts | baseClient -> opts where
A type class for making graphql subscriptions.
If you wish to use a different underlying client,
you can create your own client,
make it an instance of SubscriptionClient
and pass it to subscription
Members
clientSubscription :: opts -> baseClient -> String -> Json -> (Json -> Effect Unit) -> Effect (Effect Unit)
defSubOpts :: baseClient -> opts
#subscriptionEventOpts Source
subscriptionEventOpts :: forall opts c. SubscriptionClient c opts => (opts -> opts) -> c -> String -> Json -> Emitter Json
#subscriptionEvent Source
subscriptionEvent :: forall opts c. SubscriptionClient c opts => c -> String -> Json -> Emitter Json
#WatchQueryClient Source
class WatchQueryClient baseClient opts | baseClient -> opts where
A type class for making graphql watch queries (observable queries).
If you wish to use a different underlying client,
you can create your own client,
make it an instance of WatchQueryClient
and pass it to watchQuery
Members
clientWatchQuery :: opts -> baseClient -> String -> Json -> (Json -> Effect Unit) -> Effect (Effect Unit)
defWatchOpts :: baseClient -> opts
#watchQueryEventOpts Source
watchQueryEventOpts :: forall opts c. WatchQueryClient c opts => (opts -> opts) -> c -> String -> Json -> Emitter Json
#watchQueryEvent Source
watchQueryEvent :: forall opts c. WatchQueryClient c opts => c -> String -> Json -> Emitter Json
- 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