graphql-js
graphql-js copied to clipboard
Introduce astFromValueUntyped and handle object values within astFromValue correctly
Fixes https://github.com/graphql/graphql-js/issues/4085 Closes https://github.com/graphql/graphql-js/pull/4086
This PR introduces a new function called astFromValueUntyped that creates an AST without a type.
This function is needed because if a custom scalar returns an object type, it needs to be serialized without a type.