A GraphQL query like the following (which GraphiQL's explorer will generate by default if you chose to use variables):
mutation MyMutation($input: MyMutationInput! = {date: ""}) {
echoDate(input: $input) {
myDate
}
}
Will receive a response of:
{
"data": null,
"errors": [
{
"message": "Value cannot represent a Date: \"\". Invalid isoformat string: ''"
}
]
}
Even when a variables
argument is provided with a correctly formatted argument:
{
"input": {
"date": "2023-05-31"
}
}
I'm not sure if this should be considered a bug or proper functionality. If the latter, I think at least a note of caution in the docs is called for.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too