Skip to content

Type Alias: GraphQLTransportOptions<Mutations> ​

GraphQLTransportOptions<Mutations> = object

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:62

Type Parameters ​

Mutations ​

Mutations extends TransportMutations = EmptyTransportMutations

Properties ​

byId? ​

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

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:63


decodeNodeId? ​

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

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:64

Parameters ​

type ​

string

id ​

string | number

Returns ​

string | number


encodeNodeId? ​

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

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:65

Parameters ​

type ​

string

id ​

string | number

Returns ​

string | number


eventSource? ​

optional eventSource?: EventSourceConstructor

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:66


fetch? ​

optional fetch?: FetchLike

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:67


headers? ​

optional headers?: HeadersFactory

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:68


live? ​

optional live?: boolean | GraphQLLiveOptions

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:69


mutateDurably? ​

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

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:70


mutations? ​

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

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:71


nodes? ​

optional nodes?: boolean

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:72


roots? ​

optional roots?: Record<string, GraphQLRootConfig>

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:73


schema? ​

optional schema?: GraphQLArgumentSchema

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:74


types ​

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

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:75


url ​

url: string | URL

Defined in: fate/lib/graphqlTransport-CMeWu4PI.d.mts:76

Released under the MIT License