UNPKG

@graphql-tools/executor

Version:

Fork of GraphQL.js' execute function

10 lines (9 loc) 239 B
import { isSameSet } from './isSameSet.js'; export function getBySet(map, setToMatch) { for (const set of map.keys()) { if (isSameSet(set, setToMatch)) { return map.get(set); } } return undefined; }