Module

GraphQL.Client.BaseClients.Urql

Creates GraphQL clients

#UrqlClientOptions

type UrqlClientOptions = { headers :: Array RequestHeader, url :: URL }

#UrqlSubClientOptions

type UrqlSubClientOptions = { headers :: Array RequestHeader, url :: URL, websocketUrl :: URL }

#UrqlClient

data UrqlClient :: Type

A client to make graphQL queries and mutations. From the @urql/core npm module

Instances

#UrqlSubClient

data UrqlSubClient :: Type

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

createClient :: forall querySchema mutationSchema subscriptionSchema. UrqlClientOptions -> Effect (Client UrqlClient querySchema mutationSchema subscriptionSchema)

#createGlobalClientUnsafe

createGlobalClientUnsafe :: forall querySchema mutationSchema subscriptionSchema. UrqlClientOptions -> Effect (Client UrqlClient querySchema mutationSchema subscriptionSchema)

#createSubscriptionClient

createSubscriptionClient :: forall querySchema mutationSchema subscriptionSchema. UrqlSubClientOptions -> Effect (Client UrqlSubClient querySchema mutationSchema subscriptionSchema)

Modules