Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed introspection for schema description and specifiedByURL #1986

Merged
merged 14 commits into from
Feb 28, 2022

Conversation

Code-Hex
Copy link
Contributor

@Code-Hex Code-Hex commented Feb 23, 2022

fixed introspection to support the latest spec.

https://spec.graphql.org/October2021/#sec-Schema-Introspection

ref: vektah/gqlparser#182

This PR can avoid like this problem: #1636

Describe your PR and link to any relevant issues.

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

@coveralls
Copy link

coveralls commented Feb 23, 2022

Coverage Status

Coverage decreased (-0.2%) to 74.223% when pulling d48a375 on Code-Hex:fix/prelude-october-2021 into f17ca15 on 99designs:master.

@Code-Hex
Copy link
Contributor Author

I've checked with rewrote go.mod like below

replace github.com/vektah/gqlparser/v2 => ../gqlparser

@Code-Hex Code-Hex force-pushed the fix/prelude-october-2021 branch from 47bb408 to 33a6c59 Compare February 28, 2022 17:57
@Code-Hex Code-Hex force-pushed the fix/prelude-october-2021 branch from 33a6c59 to 2fee560 Compare February 28, 2022 18:00
@Code-Hex Code-Hex changed the title WIP: fixed introspection for schema description and specifiedByURL fixed introspection for schema description and specifiedByURL Feb 28, 2022
@@ -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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use graphql-codegen because need to upgrade graphql-js to v16.3.0 (the same as gqlparser) and graphql-cli is wrapper for it

@Code-Hex
Copy link
Contributor Author

@StevenACoffman Could you check?

go.mod Outdated
@@ -13,8 +13,8 @@ require (
github.com/mitchellh/mapstructure v1.2.3
github.com/stretchr/testify v1.4.0
github.com/urfave/cli/v2 v2.3.0
github.com/vektah/gqlparser/v2 v2.3.1
golang.org/x/tools v0.1.5
github.com/vektah/gqlparser/v2 v2.3.2-0.20220228141359-a1885932a1bc
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the latest

Copy link
Collaborator

@StevenACoffman StevenACoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@StevenACoffman StevenACoffman merged commit f6ea623 into 99designs:master Feb 28, 2022
}

""""""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why's this happened?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check #2008

@Code-Hex Code-Hex deleted the fix/prelude-october-2021 branch March 1, 2022 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants