Skip to content

Commit d0099b8

Browse files
authored
Merge pull request #5 from fabsrc/refactoring
Use graphql-toolkit for schema loading
2 parents 7ee4753 + 0a466ba commit d0099b8

File tree

8 files changed

+1989
-1159
lines changed

8 files changed

+1989
-1159
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules/
22
dist/
3+
schemaDiff/
34
coverage/
45
.dev/

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: node_js
22
node_js:
33
- "node"
4+
- "13"
45
- "12"
56
- "10"
67
- "8"

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ $ graphql-schema-diff --help
2525

2626
Options
2727
--fail-on-dangerous-changes Exit with error on dangerous changes
28-
--ignore-breaking-changes Do not exit with error on breaking changes
29-
--create-html-output Creates an HTML file containing the diff
30-
--html-output-directory Directory where the HTML file should be stored (Default: './schemaDiff')
31-
--header, -H Header to send to all remote schema sources
32-
--left-schema-header Header to send to left remote schema source
33-
--right-schema-header Header to send to right remote schema source
34-
--sort-schema, -s Sort schemas prior to diffing
28+
--fail-on-breaking-changes Exit with error on breaking changes
29+
--fail-on-all-changes Exit with error on all changes
30+
--use-colors Use colors for diff terminal output
31+
--create-html-output Creates an HTML file containing the diff
32+
--html-output-directory Directory where the HTML file should be stored (Default: './schemaDiff')
33+
--header, -H Header to send to all remote schema sources
34+
--left-schema-header Header to send to left remote schema source
35+
--right-schema-header Header to send to right remote schema source
36+
--sort-schema, -s Sort schemas prior to diffing
3537

3638
Examples
3739
$ graphql-schema-diff https://example.com/graphql schema.graphql
@@ -69,3 +71,9 @@ getDiff(currentSchemaLocation, newSchemaLocation)
6971
console.log(result.breakingChanges);
7072
});
7173
```
74+
75+
76+
## Related Packages
77+
78+
* [GraphQL Inspector](https://github.com/kamilkisiela/graphql-inspector) ouputs a list of changes between two GraphQL schemas.
79+
* [GraphQL Toolkit](https://github.com/ardatan/graphql-toolkit) provides a set of utils for faster development of GraphQL tools.

0 commit comments

Comments
 (0)