WIP for viewing CSI question sets BOD-380

This commit is contained in:
Patrick Fic
2020-09-08 15:06:24 -07:00
parent 92ee64a413
commit 637670da50
8 changed files with 231 additions and 6 deletions

View File

@@ -22,6 +22,22 @@ export const COMPLETE_SURVEY = gql`
}
`;
export const GET_ALL_QUESTION_SETS = gql`
query GET_ALL_QUESTION_SETS {
csiquestions(order_by: { created_at: desc }) {
id
created_at
config
current
csis_aggregate {
aggregate {
count
}
}
}
}
`;
export const GET_CURRENT_QUESTIONSET_ID = gql`
query GET_CURRENT_QUESTIONSET_ID {
csiquestions(where: { current: { _eq: true } }) {