@graphql-tools/executor
Version:
Fork of GraphQL.js' execute function
14 lines (13 loc) • 391 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBySet = void 0;
const isSameSet_js_1 = require("./isSameSet.js");
function getBySet(map, setToMatch) {
for (const set of map.keys()) {
if ((0, isSameSet_js_1.isSameSet)(set, setToMatch)) {
return map.get(set);
}
}
return undefined;
}
exports.getBySet = getBySet;