UNPKG

@graphql-tools/executor

Version:

Fork of GraphQL.js' execute function

11 lines (10 loc) • 256 B
import { isSameSet } from './isSameSet.js'; /** @internal */ export function getBySet(map, setToMatch) { for (const set of map.keys()) { if (isSameSet(set, setToMatch)) { return map.get(set); } } return undefined; }