Skip to content

Type Alias: GraphQLTransportOptions<Mutations> ​

GraphQLTransportOptions<Mutations> = object

Defined in: fate/src/graphqlTransport.ts:110

Type Parameters ​

Mutations ​

Mutations extends TransportMutations = EmptyTransportMutations

Properties ​

byId? ​

optional byId?: Readonly<Record<string, GraphQLByIdConfig>>

Defined in: fate/src/graphqlTransport.ts:113


decodeNodeId? ​

optional decodeNodeId?: (type, id) => string | number

Defined in: fate/src/graphqlTransport.ts:114

Parameters ​

type ​

string

id ​

string | number

Returns ​

string | number


durableMutations? ​

optional durableMutations?: ReadonlyArray<Extract<keyof Mutations, string>>

Defined in: fate/src/graphqlTransport.ts:115


encodeNodeId? ​

optional encodeNodeId?: (type, id) => string | number

Defined in: fate/src/graphqlTransport.ts:116

Parameters ​

type ​

string

id ​

string | number

Returns ​

string | number


eventSource? ​

optional eventSource?: EventSourceConstructor

Defined in: fate/src/graphqlTransport.ts:117


fetch? ​

optional fetch?: FetchLike

Defined in: fate/src/graphqlTransport.ts:118


headers? ​

optional headers?: HeadersFactory

Defined in: fate/src/graphqlTransport.ts:119


live? ​

optional live?: boolean | GraphQLLiveOptions

Defined in: fate/src/graphqlTransport.ts:120


mutateDurably? ​

optional mutateDurably?: Transport<Mutations>["mutateDurably"]

Defined in: fate/src/graphqlTransport.ts:121


mutations? ​

optional mutations?: Record<Extract<keyof Mutations, string>, GraphQLMutationRuntimeConfig>

Defined in: fate/src/graphqlTransport.ts:122


nodes? ​

optional nodes?: boolean

Defined in: fate/src/graphqlTransport.ts:123


roots? ​

optional roots?: Record<string, GraphQLRootConfig>

Defined in: fate/src/graphqlTransport.ts:124


schema? ​

optional schema?: GraphQLArgumentSchema

Defined in: fate/src/graphqlTransport.ts:125


streaming? ​

optional streaming?: boolean

Defined in: fate/src/graphqlTransport.ts:126


types ​

types: ReadonlyArray<Omit<TypeConfig, "getId"> & Partial<Pick<TypeConfig, "getId">>>

Defined in: fate/src/graphqlTransport.ts:127


url ​

url: string | URL

Defined in: fate/src/graphqlTransport.ts:128

Released under the MIT License