Actions
Feature #35
openConfigurable literal coercion
Feature #35:
Configurable literal coercion
Status:
New
Priority:
Normal
Assignee:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
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.
- Rename
coerceInputLiteralintocoerceLiteral -
ScalarTypeshould probably have an additional constructor argument which saves the functionValue->Maybe Valuewhich performs the coercion. - Move hard-coded coercion to the function defined in 2.
- Update the documentation for
coerceVariableValueandserialize- 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
Actions