From bc2db60ba36689fd0b83a16b8e90cced2d7bc032 Mon Sep 17 00:00:00 2001 From: Wojciech Trocki Date: Tue, 17 Sep 2019 10:40:01 +0100 Subject: [PATCH] Expose findSchemaChanges to users --- src/utilities/findBreakingChanges.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utilities/findBreakingChanges.js b/src/utilities/findBreakingChanges.js index d53b107dd7..8e8b3313b9 100644 --- a/src/utilities/findBreakingChanges.js +++ b/src/utilities/findBreakingChanges.js @@ -102,7 +102,11 @@ export function findDangerousChanges( return ((dangerousChanges: any): Array); } -function findSchemaChanges( +/** + * Given two schemas, returns an Array containing descriptions of all the types + * of potentially breaking change and dangerous change + */ +export function findSchemaChanges( oldSchema: GraphQLSchema, newSchema: GraphQLSchema, ): Array {