Allow multiple sourceType for scalar #784
Labels
effort/modest
scope/types
Having to do with types
type/improve
Something existing is made better, does not affect the interface (example: better error message)
Currently the
sourceType
only allows for one type, it happens that you need to accept multiple types.For example our
DateTime
scalar accepts the JSDate
and luxonDateTime
.For now what we do is we created a new type that we use in the global
sourceTypes
.Ideally it would be nice to have an input type and an output type, but only one is also fine if thats too big of refactor.
The text was updated successfully, but these errors were encountered: