Configurable literal coercion
coerceInputLiteral default scalars. There is now a way to add custom serialization and custom variable coercing, but coercing the literals isn't extendable.
The outcome of this issues should be the possibility to define custom scalar types.
ScalarTypeshould probably have an additional constructor argument which saves the function
Maybe Valuewhich performs the coercion.
- Move hard-coded coercion to the function defined in 2.
- Update the documentation for
serialize- they should probably take a bit more responsibility if the built-in and custom scalars are going to be handled equally.
No data to display