(variables: {
postId: string;
optionId: string;
})
| 1120 | `; |
| 1121 | |
| 1122 | export const votePoll = async (variables: { |
| 1123 | postId: string; |
| 1124 | optionId: string; |
| 1125 | }): Promise<VotePollResponse> => { |
| 1126 | const res = await gqlClient.request(VOTE_POLL_MUTATION, variables); |
| 1127 | |
| 1128 | return res.votePoll; |
| 1129 | }; |
| 1130 | |
| 1131 | export const CREATE_POLL_POST_MUTATION = gql` |
| 1132 | mutation CreatePollPost( |