Module

GraphQL.Client.Subscription

Package
purescript-graphql-client
Repository
OxfordAbstracts/purescript-graphql-client

#subscriptionOpts Source

subscriptionOpts :: forall b a returns query schema client opts. SubscriptionClient client opts => GqlQuery schema query returns => DecodeJson returns => (opts -> opts) -> Client client a b schema -> String -> query -> Emitter (Either JsonDecodeError returns)

#subscriptionOptsWithDecoder Source

subscriptionOptsWithDecoder :: forall client opts schema query returns a b. SubscriptionClient client opts => GqlQuery schema query returns => (Json -> Either JsonDecodeError returns) -> (opts -> opts) -> (Client client a b schema) -> String -> query -> Emitter (Either JsonDecodeError returns)

#subscription Source

subscription :: forall b a returns query schema client opts. SubscriptionClient client opts => GqlQuery schema query returns => DecodeJson returns => Client client a b schema -> String -> query -> Emitter (Either JsonDecodeError returns)

#subscriptionWithDecoder Source

subscriptionWithDecoder :: forall client opts schema query returns a b. SubscriptionClient client opts => GqlQuery schema query returns => (Json -> Either JsonDecodeError returns) -> (Client client a b schema) -> String -> query -> Emitter (Either JsonDecodeError returns)

#subscriptionFullRes Source

subscriptionFullRes :: forall client schema subscription returns a b subOpts. SubscriptionClient client subOpts => GqlQuery schema subscription returns => DecodeJson returns => (Json -> Either JsonDecodeError returns) -> (subOpts -> subOpts) -> (Client client a b schema) -> String -> subscription -> Emitter (Either JsonDecodeError (GqlRes returns))

Run a graphQL subscription, getting the full response, According to https://spec.graphql.org/June2018/#sec-Response-Format