Hi,
can someone help me with the following problem, please?
My goalMarkAsComplete mutation looks like this:
mutation GoalMarkAsComplete($goalMarkAsCompleteInput: GoalMarkAsCompleteInput!) {
goalMarkAsComplete(input: $goalMarkAsCompleteInput) {
node{
id
}
}
}
Passing the variables like this:
goalMarkAsComplete({ variables: { GoalMarkAsCompleteInput: { goalId: id } }})
And I get the following error: [GraphQL error]: Message: Variable goalMarkAsCompleteInput of type GoalMarkAsCompleteInput! was provided invalid value, Location: [object Object], Path: undefined
I'm using react with Apollo. Probably something ridiculous but I can't figure it out.
Thank you for your help ๐
YourStack