UNPKG

@graphql-inspector/cli

Version:

Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.

12 lines (11 loc) 440 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findFirstChangeByPath = exports.findChangesByPath = void 0; function findChangesByPath(changes, path) { return changes.filter(c => c.path === path); } exports.findChangesByPath = findChangesByPath; function findFirstChangeByPath(changes, path) { return findChangesByPath(changes, path)[0]; } exports.findFirstChangeByPath = findFirstChangeByPath;