-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
include scalars types returning by computed fields in generated schema (fix #3650) #3651
include scalars types returning by computed fields in generated schema (fix #3650) #3651
Conversation
Deploy preview for hasura-docs ready! Built with commit 2391d86 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, actually, I initially approved this PR, but it looks like the tests are failing in CI. @rakeshkky, could you figure out what’s going wrong?
Review app for commit 51d289b deployed to Heroku: https://hge-ci-pull-3651.herokuapp.com |
Review app for commit 44d06a1 deployed to Heroku: https://hge-ci-pull-3651.herokuapp.com |
Review app for commit 1d65dcb deployed to Heroku: https://hge-ci-pull-3651.herokuapp.com |
Review app for commit 2391d86 deployed to Heroku: https://hge-ci-pull-3651.herokuapp.com |
Review app https://hge-ci-pull-3651.herokuapp.com is deleted |
Description
Scalar types returning by scalar computed fields are not included in generated GraphQL schema. And hence the introspection query and GraphQL queries fail. This PR fixes the same.
Affected components
Related Issues
Fix #3650
Solution and Design
Include the
PGScalarType
of scalar computed fields inadditionalScalars
while generating GraphQL context.Steps to test and verify
Add a scalar computed field which returns uncommon scalar type and perform the graphql query.
Limitations, known bugs & workarounds
Server checklist
Catalog upgrade
Does this PR change Hasura Catalog version?
Metadata
Does this PR add a new Metadata feature?
GraphQL
Fixes the GraphQL schema generation for scalar computed fields.
Breaking changes