@graphql-mesh/types

Interfaces#

Type aliases#

Functions#

Type aliases#

AllHooks#

Ƭ AllHooks: { [key: string]: any; destroy: void ; resolverCalled: { resolverData: ResolverData } ; resolverDone: { resolverData: ResolverData ; result: any } ; resolverError: { error: Error ; resolverData: ResolverData } }

Type declaration:#

NameType
destroyvoid
resolverCalled{ resolverData: ResolverData }
resolverDone{ resolverData: ResolverData ; result: any }
resolverError{ error: Error ; resolverData: ResolverData }

Defined in: packages/types/src/index.ts:48


GetMeshSourceOptions#

Ƭ GetMeshSourceOptions<THandlerConfig\>: { cache: KeyValueCache ; config: THandlerConfig ; name: string ; pubsub: MeshPubSub }

Type parameters:#

Name
THandlerConfig

Type declaration:#

NameType
cacheKeyValueCache
configTHandlerConfig
namestring
pubsubMeshPubSub

Defined in: packages/types/src/index.ts:24


GraphQLOperation#

Ƭ GraphQLOperation<TData, TVariables\>: TypedDocumentNode<TData, TVariables\> | string

Type parameters:#

Name
TData
TVariables

Defined in: packages/types/src/index.ts:110


HookName#

Ƭ HookName: keyof AllHooks & string

Defined in: packages/types/src/index.ts:55


ImportFn#

Ƭ ImportFn: (moduleId: string) => Promise<any\>

Defined in: packages/types/src/index.ts:112


Maybe#

Ƭ Maybe<T\>: null | undefined | T

Type parameters:#

Name
T

Defined in: packages/types/src/index.ts:83


MergerFn#

Ƭ MergerFn: (options: { cache: KeyValueCache ; executor?: Executor ; pubsub: MeshPubSub ; rawSources: RawSourceOutput[] ; resolvers?: IResolvers ; transforms?: Transform[] ; typeDefs?: DocumentNode[] }) => Promise<GraphQLSchema\> | GraphQLSchema

Defined in: packages/types/src/index.ts:87


MeshSource#

Ƭ MeshSource<ContextType, InitialContext\>: { batch?: boolean ; contextBuilder?: (initialContextValue: InitialContext) => Promise<ContextType\> ; contextVariables?: keyof InitialContext[] ; executor?: Executor ; schema: GraphQLSchema ; subscriber?: Subscriber }

Type parameters:#

NameDefault
ContextTypeany
InitialContextany

Type declaration:#

NameType
batch?boolean
contextBuilder?(initialContextValue: InitialContext) => Promise<ContextType\>
contextVariables?keyof InitialContext[]
executor?Executor
schemaGraphQLSchema
subscriber?Subscriber

Defined in: packages/types/src/index.ts:15


RawSourceOutput#

Ƭ RawSourceOutput: { batch: boolean ; contextBuilder: null | (initialContextValue?: any) => Promise<any\> ; contextVariables: keyof any[] ; executor?: Executor ; handler: MeshHandler ; name: string ; schema: GraphQLSchema ; subscriber?: Subscriber ; transforms: MeshTransform[] }

Type declaration:#

NameType
batchboolean
contextBuildernull
contextVariableskeyof any[]
executor?Executor
handlerMeshHandler
namestring
schemaGraphQLSchema
subscriber?Subscriber
transformsMeshTransform[]

Defined in: packages/types/src/index.ts:97


ResolverData#

Ƭ ResolverData<TParent, TArgs, TContext\>: { args?: TArgs ; context?: TContext ; info?: GraphQLResolveInfo ; root?: TParent }

Type parameters:#

NameDefault
TParentany
TArgsany
TContextany

Type declaration:#

NameType
args?TArgs
context?TContext
info?GraphQLResolveInfo
root?TParent

Defined in: packages/types/src/index.ts:40

Functions#

getJsonSchema#

getJsonSchema(): any

Returns: any

Defined in: packages/types/src/index.ts:11