In progress update job mutation. Unknown how to have this use an input object.

This commit is contained in:
Patrick Fic
2019-12-12 22:06:35 -08:00
parent 9d74cc19c9
commit 36e8449383
6 changed files with 24 additions and 10 deletions

View File

@@ -103,3 +103,13 @@ export const GET_JOB_BY_PK = gql`
}
}
`;
export const UPDATE_JOB = gql`
mutation UPDATE_JOB($jobId: uuid!, $job: json!) {
update_jobs(where: { id: { _eq: $jobId } }, _set: $job) {
returning {
id
}
}
}
`;