Skip to content

Type Alias: GraphQLTransportOptions<Mutations> ​

GraphQLTransportOptions<Mutations> = object

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

Type Parameters ​

Mutations ​

Mutations extends TransportMutations = EmptyTransportMutations

Properties ​

byId? ​

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

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


decodeNodeId? ​

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

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

Parameters ​

type ​

string

id ​

string | number

Returns ​

string | number


encodeNodeId? ​

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

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

Parameters ​

type ​

string

id ​

string | number

Returns ​

string | number


eventSource? ​

optional eventSource?: EventSourceConstructor

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


fetch? ​

optional fetch?: FetchLike

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


headers? ​

optional headers?: HeadersFactory

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


live? ​

optional live?: boolean | GraphQLLiveOptions

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


mutateDurably? ​

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

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


mutations? ​

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

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


nodes? ​

optional nodes?: boolean

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


roots? ​

optional roots?: Record<string, GraphQLRootConfig>

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


schema? ​

optional schema?: GraphQLArgumentSchema

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


types ​

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

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


url ​

url: string | URL

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

Released under the MIT License