core-types-graphql
Version:
core-types ⬌ GraphQL conversion
8 lines (7 loc) • 319 B
JavaScript
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));
}