I am running this mutation:
mutation - returning id and title?
mutation addTask($task: [AddTaskInput!]!) {
addTask(input: $task) {
task {
id
title
}
}
}
task - input
{
task: [
{
title: 'something',
completed: false,
user: { username: email },
}
]
}
with email being the logged in user…
While the mutation works fine, it returns an empty object at data.addTask:
task: []
Shouldn’t it return the new task with the id and title from my mutation? I was thinking graphql did return the query…
Thanks,
J