@graphql-tools/executor
Version:
Fork of GraphQL.js' execute function
10 lines (9 loc) • 406 B
TypeScript
/**
* Shared empty constructor for per-field execution result maps.
*
* `executeFields` and `promiseForObject` both allocate null-prototype result
* objects. Using the same constructor keeps a single V8 hidden class after
* `Object.setPrototypeOf(..., null)`, including when sync field collection
* hands off to async completion.
*/
export declare const CompactExecutionResultMap: new () => object;