UNPKG

@graphql-tools/executor

Version:

Fork of GraphQL.js' execute function

10 lines (9 loc) • 423 B
/** * 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 const CompactExecutionResultMap = function CompactExecutionResultMap() { };