diff --git a/client/src/graphql/documents.queries.js b/client/src/graphql/documents.queries.js index 443025ce9..a01a44b0d 100644 --- a/client/src/graphql/documents.queries.js +++ b/client/src/graphql/documents.queries.js @@ -9,7 +9,10 @@ export const GET_DOCUMENTS_BY_JOB = gql` } } } - documents(order_by: { updated_at: desc }) { + documents( + order_by: { updated_at: desc } + where: { jobid: { _eq: $jobId } } + ) { id name key