Skip to content

Gql.ts

This module contains GraphQL related to utilities.

Added in v2.0.0

Signature

export type FetchDecodeGraphqlError = UnknownException | ParseError

Source: src/Gql.ts:18

Added in v2.0.0

Signature

export declare const fetchDecode: <S>(
schema: Schema.Schema<S>,
url: string
) => Effect.Effect<S, ParseError | HttpClientError, HttpClient.HttpClient>

Source: src/Gql.ts:55

Added in v2.0.0

Signature

export declare const fetchDecodeGraphql: <S, E, D, V extends object | undefined>(
schema: Schema.Schema<S, E>,
document: TadaDocumentNode<D, V>,
variables?: V
) => Effect.Effect<S, FetchDecodeGraphqlError, never>

Source: src/Gql.ts:24

Added in v2.0.0

Signature

export declare const operationNamesFromDocumentNode: <T extends TadaDocumentNode<any, any>>(doc: T) => string[]

Source: src/Gql.ts:74

Added in v2.0.0