I am trying to create a mutation to insert an entry into the project
query, but the response for the mutation is null. When I run the project
query after the mutation, I see the same data as before, but not the updated data. How do I fix it?
project query (Request):
{
project(id:"1") {
issues {
id,
title,
description
}
}
}
project query (Response):
{
"data": {
"project": {
"issues": [
{
"id": "1",
"title": "Issue One",
"description": ""
},
{
"id": "2",
"title": "Issue Two",
"description": ""
},
{
"id": "4",
"title": "Issue Four",
"description": "This is issue 4"
}
]
}
}
}
Mutation to add an entry to the Project:
mutation {
createIssue(input: {
projectId: "1",
title: "My Issue",
description: "Missing Issue",
clientMutationId: "1234"
}) {
clientMutationId,
issue {
description,
id,
title
}
}
}
Response:
{
"data": {
"createIssue": null
}
}