@graphql-tools/executor
Version:
Fork of GraphQL.js' execute function
13 lines (12 loc) • 539 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompactExecutionResultMap = void 0;
/**
* 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.
*/
exports.CompactExecutionResultMap = function CompactExecutionResultMap() { };