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

Changes to ExecutableSchema are not reflected in federation introspection queries #2409

Open
dball opened this issue Oct 19, 2022 · 1 comment

Comments

@dball
Copy link

dball commented Oct 19, 2022

What happened?

We modify our ExecutableSchema by augmenting the Definition value of some fields based on their directives before calling handler.New upon it. These augmented values are not visible in the introspection query results.

It appears that the query results are being driven only by the value of the sources global var in the package populated by gqlgen's codegen.

What did you expect?

We expected to be able to see such changes in the introspection query results.

versions

  • go run github.com/99designs/gqlgen version?

v0.17.16

  • go version?

go version go1.19.2 darwin/arm64

@dball
Copy link
Author

dball commented Oct 19, 2022

Note the same problem obtains if I move the decoration logic to a MutateConfig plugin — the schema accepts the changes but the source string does not, and that is the basis for the federation introspection query.

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

No branches or pull requests

1 participant