Added saving of CSI survey + error handling BOD-98
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user