WIP Deleting

This commit is contained in:
Patrick Fic
2021-06-08 15:37:24 -07:00
parent 66f98656b0
commit bd2f22f059
5 changed files with 108 additions and 65 deletions

View File

@@ -84,7 +84,15 @@ export const DELETE_DOCUMENT = gql`
}
}
`;
export const DELETE_DOCUMENTS = gql`
mutation DELETE_DOCUMENTS($ids: [uuid!]!) {
delete_documents(where: { id: { _in: $ids } }) {
returning {
id
}
}
}
`;
export const QUERY_TEMPORARY_DOCS = gql`
query QUERY_TEMPORARY_DOCS {
documents(