Skip to content

ResolverOptions

Defined in: resolver.ts:14

T

C

optional createContext?: (record, ctx) => C | Promise<C>

Defined in: resolver.ts:20

Called once per record before field resolvers run. The return value is passed as the fourth argument to every field resolver in the map. Use this to perform a single async lookup shared across multiple fields.

T

HookContext

C | Promise<C>