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