IO-134 Document Upload sizing limits

This commit is contained in:
Patrick Fic
2021-04-06 08:56:14 -07:00
parent f16b4938b2
commit d8e549ed78
15 changed files with 167 additions and 33 deletions

View File

@@ -1,11 +1,27 @@
import gql from "graphql-tag";
export const GET_DOC_SIZE_TOTALS = gql`
query GET_DOC_SIZE_TOTALS($jobId: uuid!) {
documents_aggregate(where: { jobid: { _eq: $jobId } }) {
aggregate {
sum {
size
}
}
}
}
`;
export const GET_DOCUMENTS_BY_JOB = gql`
query GET_DOCUMENTS_BY_JOB($jobId: uuid!) {
documents(
where: { jobid: { _eq: $jobId } }
order_by: { updated_at: desc }
) {
documents_aggregate(where: { jobid: { _eq: $jobId } }) {
aggregate {
sum {
size
}
}
}
documents(order_by: { updated_at: desc }) {
id
name
key