Added saving of CSI survey + error handling BOD-98

This commit is contained in:
Patrick Fic
2020-05-22 15:50:36 -07:00
parent f7cc4cffa4
commit d36219368a
15 changed files with 372 additions and 80 deletions

View File

@@ -14,3 +14,10 @@ export const QUERY_SURVEY = gql`
}
}
`;
export const COMPLETE_SURVEY = gql`
mutation COMPLETE_SURVEY($surveyId: uuid!, $survey: csi_set_input) {
update_csi(where: { id: { _eq: $surveyId } }, _set: $survey) {
affected_rows
}
}
`;