You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a schema uses a GraphQL input type, and one tries to validate a query that is missing one or more of the fields of that input type, I would expect a validation error. On an un-normalized document, it works correctly. But after normalization, the validation passes as if there was no error.
The following test code demonstrates 8 test cases. 7 pass, and 1 fails. The failing cases passes if you comment out the astnormalization.WithExtractVariables() option. However, that's not a practical workaround since it's set by default in a few places internally within GraphQL Go Tools.
If a schema uses a GraphQL
input
type, and one tries to validate a query that is missing one or more of the fields of that input type, I would expect a validation error. On an un-normalized document, it works correctly. But after normalization, the validation passes as if there was no error.The following test code demonstrates 8 test cases. 7 pass, and 1 fails. The failing cases passes if you comment out the
astnormalization.WithExtractVariables()
option. However, that's not a practical workaround since it's set by default in a few places internally within GraphQL Go Tools.The text was updated successfully, but these errors were encountered: