UNPKG

core-types-graphql

Version:
8 lines (7 loc) 319 B
import { findBreakingChanges, findDangerousChanges, buildSchema, } from 'graphql'; export function getBreakingChanges(from, to) { return findBreakingChanges(buildSchema(from), buildSchema(to)); } export function getDangerousChanges(from, to) { return findDangerousChanges(buildSchema(from), buildSchema(to)); }