Skip to content

Commit

Permalink
fixed introspection for schema description and specifiedByURL (#1986)
Browse files Browse the repository at this point in the history
* fixed introspection for schema description and specifiedByURL

* updated to the master latest

* fixed Description resolver

* updated integration go file

* fixed codegen tests for the latest gqlparser

* updated go mod in example

* go generate

* skip specifiedBy

* regenerate

* fixed schema-expected.graphql for the latest

* fixed integration test to use latest tools

* fixed integration workflow

* use v2.4.0

* fixed sum
  • Loading branch information
Code-Hex authored Feb 28, 2022
1 parent f17ca15 commit f6ea623
Show file tree
Hide file tree
Showing 33 changed files with 16,474 additions and 5,497 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-integration
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo "### running jest integration spec"


echo "### validating introspected schema"
SERVER_URL=http://localhost:8080/query ./node_modules/.bin/graphql get-schema
./node_modules/.bin/graphql-codegen

if ! diff <(tail -n +3 schema-expected.graphql) <(tail -n +3 schema-fetched.graphql) ; then
echo "The expected schema has changed, you need to update schema-expected.graphql with any expected changes"
Expand Down
2 changes: 1 addition & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ in another terminal
```bash
cd integration
npm install
SERVER_URL=http://localhost:8080/query ./node_modules/.bin/graphql get-schema
./node_modules/.bin/graphql-codegen
```

will write the schema to `integration/schema-fetched.graphql`, compare that with `schema-expected.graphql`
Expand Down
100 changes: 78 additions & 22 deletions _examples/chat/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 78 additions & 22 deletions _examples/config/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f6ea623

Please sign in to comment.