Added temporary document handling IO-69
This commit is contained in:
@@ -45,3 +45,33 @@ export const DELETE_DOCUMENT = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const QUERY_TEMPORARY_DOCS = gql`
|
||||
query QUERY_TEMPORARY_DOCS {
|
||||
documents(
|
||||
where: { jobid: { _is_null: true } }
|
||||
order_by: { updated_at: desc }
|
||||
) {
|
||||
id
|
||||
name
|
||||
key
|
||||
type
|
||||
extension
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_DOCUMENT = gql`
|
||||
mutation UPDATE_DOCUMENT($id: uuid!, $document: documents_set_input!) {
|
||||
update_documents_by_pk(pk_columns: { id: $id }, _set: $document) {
|
||||
billid
|
||||
bodyshopid
|
||||
extension
|
||||
id
|
||||
jobid
|
||||
name
|
||||
type
|
||||
key
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user