Added viewing all CSI responses + read only version of configurable form BOD-154

This commit is contained in:
Patrick Fic
2020-06-04 13:44:43 -07:00
parent 910183d8e7
commit 90152fc613
27 changed files with 615 additions and 50 deletions

View File

@@ -39,3 +39,43 @@ export const INSERT_CSI = gql`
}
}
`;
export const QUERY_CSI_RESPONSE_PAGINATED = gql`
query QUERY_CSI_RESPONSE_PAGINATED(
$offset: Int
$limit: Int
$order: [csi_order_by!]!
) {
csi(offset: $offset, limit: $limit, order_by: $order) {
id
completedon
job {
ownr_fn
ownr_ln
ro_number
est_number
id
}
}
csi_aggregate {
aggregate {
count(distinct: true)
}
}
}
`;
export const QUERY_CSI_RESPONSE_BY_PK = gql`
query QUERY_CSI_RESPONSE_BY_PK($id: uuid!) {
csi_by_pk(id: $id) {
relateddata
valid
validuntil
id
response
csiquestion {
id
config
}
}
}
`;