Module
GraphQL.Client.BaseClients.Urql
- Package
- purescript-graphql-client
- Repository
- OxfordAbstracts/purescript-graphql-client
Creates GraphQL clients
#UrqlClientOptions Source
type UrqlClientOptions = { headers :: Array RequestHeader, url :: URL }
#UrqlSubClientOptions Source
type UrqlSubClientOptions = { headers :: Array RequestHeader, url :: URL, websocketUrl :: URL }
#UrqlClient Source
data UrqlClient
A client to make graphQL queries and mutations. From the @urql/core npm module
Instances
#UrqlSubClient Source
data UrqlSubClient
A client to make graphQL queries, mutations and subscriptions. Requires a web socket graphQL server. From the @urql/core npm module Requires your server to implement GraphQL over WebSocket Protocol See https://github.com/enisdenjo/graphql-ws details
Instances
#createClient Source
createClient :: forall querySchema mutationSchema subscriptionSchema. UrqlClientOptions -> Effect (Client UrqlClient querySchema mutationSchema subscriptionSchema)
#createGlobalClientUnsafe Source
createGlobalClientUnsafe :: forall querySchema mutationSchema subscriptionSchema. UrqlClientOptions -> Effect (Client UrqlClient querySchema mutationSchema subscriptionSchema)
#createSubscriptionClient Source
createSubscriptionClient :: forall querySchema mutationSchema subscriptionSchema. UrqlSubClientOptions -> Effect (Client UrqlSubClient querySchema mutationSchema subscriptionSchema)
- 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