Added status changing information

This commit is contained in:
Patrick Fic
2020-02-06 16:33:23 -08:00
parent f00ae5335f
commit d422edcb0e
15 changed files with 176 additions and 18 deletions

View File

@@ -19,6 +19,7 @@ export const QUERY_BODYSHOP = gql`
state_tax_id
updated_at
zip_post
region_config
}
}
`;

View File

@@ -321,3 +321,13 @@ export const INSERT_NEW_JOB = gql`
}
}
`;
export const UPDATE_JOB_STATUS = gql`
mutation UPDATE_JOB_STATUS($jobId: uuid!, $status: String!) {
update_jobs(where: { id: { _eq: $jobId } }, _set: { status: $status }) {
returning {
id
}
}
}
`;