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
Hey,
I am using graphql-yoga as a proxy to hasura to restrict the graphql introspection and to disable batching. I am also trying to disable query and variable validation by using onValidate hook and allow hasura to validate the query as shown in the code snippet below. But yoga server still tries to validate the variables passed and throws an error
Some context of why validation needs to be disabled in our case:
I have an xyz variable which is Int as per the schema, but the client passes it as a string, the hasura server seems to be capable of parsing the string into an Int and execute the query, But when its proxied through graphql-yoga, It throws a validation error. So we are trying to add graphql-yoga as a reverse proxy to hasura and trying to make it in place without any client side code changes
Expected behaviour is when validation is bypassed by using setValidationFn which returns no validation errors, the validation seems to be happening which is throwing errors
Screenshots or Videos
No response
Platform
OS: Linux
NodeJS: node 18
@graphql-yoga/* version(s): 5.7.0
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Hey,
I am using
graphql-yoga
as a proxy to hasura to restrict the graphql introspection and to disable batching. I am also trying to disable query and variable validation by usingonValidate
hook and allow hasura to validate the query as shown in the code snippet below. But yoga server still tries to validate the variables passed and throws an errorSome context of why validation needs to be disabled in our case:
I have an
xyz
variable which isInt
as per the schema, but the client passes it as a string, the hasura server seems to be capable of parsing the string into an Int and execute the query, But when its proxied throughgraphql-yoga
, It throws a validation error. So we are trying to add graphql-yoga as a reverse proxy to hasura and trying to make it in place without any client side code changesSteps to Reproduce the Bug or Issue
Code snippet
Expected behavior
Expected behaviour is when validation is bypassed by using setValidationFn which returns no validation errors, the validation seems to be happening which is throwing errors
Screenshots or Videos
No response
Platform
@graphql-yoga/*
version(s): 5.7.0Additional context
No response
The text was updated successfully, but these errors were encountered: