-
Notifications
You must be signed in to change notification settings - Fork 67
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
_Any scalar not handling variable correctly #113
Comments
@v3i1r4in In your example, you are providing a literal value
for the scalar type However, the rules for Input Coercion for Scalars do not make any mention of substitution of a variable's runtime value (this is in contrast to e.g. the rules for Input Coercion for Input Objects). Accordingly, the APIs of GraphQL libraries usually don't support this kind of substitution in scalars. Even if we were to add case-handling for The general alternative is to either fully embed the scalar in the GraphQL operation as a literal value, e.g.
or pass a variable reference for the scalar type |
I think it does, https://github.com/graphql-java/graphql-java/blob/5396ab20f6aae315327c14a77ff2f66c8fd403c7/src/main/java/graphql/schema/Coercing.java#L98. Although not on the spec, this is supported by the javascript version, it would be nice to match the behavior. |
@v3i1r4in Given that |
that's perfect, thanks! |
fails on this line Looks like it's missing the case of
VariableReference
.It's minor because gateway doesn't send this kind of query, but it can happen on manual testing and unit tests.
The text was updated successfully, but these errors were encountered: