(variables: {
postId: string;
optionId: string;
})
| 1158 | `; |
| 1159 | |
| 1160 | export const votePoll = async (variables: { |
| 1161 | postId: string; |
| 1162 | optionId: string; |
| 1163 | }): Promise<VotePollResponse> => { |
| 1164 | const res = await gqlClient.request(VOTE_POLL_MUTATION, variables); |
| 1165 | |
| 1166 | return res.votePoll; |
| 1167 | }; |
| 1168 | |
| 1169 | export const CREATE_POLL_POST_MUTATION = gql` |
| 1170 | mutation CreatePollPost( |