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

Unable to get deprecated reason populated when using SchemaPrinter#print #401

Open
mrFatDZ opened this issue Jul 5, 2021 · 0 comments
Open

Comments

@mrFatDZ
Copy link

mrFatDZ commented Jul 5, 2021

Hello,

We are trying to populate the @deprecated "reason" parameter when generating the schema via the SchemaPrinter#print method but to no avail. The schema that is generated via the SchemPrinter method does include @depracted directive beside the query that we deprecated in our Java code, however, the reason is NOT populated, no matter how we try and configure the SchemaPrinter.

Strangely enough, when the server starts, the GraphQL schema that is generated and exposed via the webserver includes the reason that we pass through the "deprecationReason" parameter as part of @GraphQLQuery annotation. Both, the webserver and the SchemaPrinter, have a reference to the same GraphQLSchema object.

We're using the following versions of the libraries:
graphql-java:16.2
spqr:0.11.2

Any help would be greatly appreciated.

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