Added creation of email based CSI BOD-108

This commit is contained in:
Patrick Fic
2020-05-29 10:59:12 -07:00
parent c1aaf8b284
commit e7da6700b7
15 changed files with 515 additions and 29 deletions

View File

@@ -21,3 +21,21 @@ export const COMPLETE_SURVEY = gql`
}
}
`;
export const GET_CURRENT_QUESTIONSET_ID = gql`
query GET_CURRENT_QUESTIONSET_ID {
csiquestions(where: { current: { _eq: true } }) {
id
}
}
`;
export const INSERT_CSI = gql`
mutation INSERT_CSI($csiInput: [csi_insert_input!]!) {
insert_csi(objects: $csiInput) {
returning {
id
}
}
}
`;