From 4519f5998793e5a72099cd03b47484df373f034d Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Sat, 24 Apr 2021 09:01:21 -0700 Subject: [PATCH] Resolve document query filtering. --- client/src/graphql/documents.queries.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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