(variables: {
postId: string;
optionId: string;
})
| 1114 | `; |
| 1115 | |
| 1116 | export const votePoll = async (variables: { |
| 1117 | postId: string; |
| 1118 | optionId: string; |
| 1119 | }): Promise<VotePollResponse> => { |
| 1120 | const res = await gqlClient.request(VOTE_POLL_MUTATION, variables); |
| 1121 | |
| 1122 | return res.votePoll; |
| 1123 | }; |
| 1124 | |
| 1125 | export const CREATE_POLL_POST_MUTATION = gql` |
| 1126 | mutation CreatePollPost( |