ResolverOptions
Defined in: resolver.ts:14
Type Parameters
Section titled “Type Parameters”T
C
Properties
Section titled “Properties”createContext?
Section titled “createContext?”
optionalcreateContext?: (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.
Parameters
Section titled “Parameters”record
Section titled “record”T
Returns
Section titled “Returns”C | Promise<C>