graphql-js icon indicating copy to clipboard operation
graphql-js copied to clipboard

Introduce astFromValueUntyped and handle object values within astFromValue correctly

Open ardatan opened this issue 1 year ago • 2 comments

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.

ardatan avatar May 08 '24 14:05 ardatan