(variables: {
postId: string;
optionId: string;
})
| 1075 | `; |
| 1076 | |
| 1077 | export const votePoll = async (variables: { |
| 1078 | postId: string; |
| 1079 | optionId: string; |
| 1080 | }): Promise<VotePollResponse> => { |
| 1081 | const res = await gqlClient.request(VOTE_POLL_MUTATION, variables); |
| 1082 | |
| 1083 | return res.votePoll; |
| 1084 | }; |
| 1085 | |
| 1086 | export const CREATE_POLL_POST_MUTATION = gql` |
| 1087 | mutation CreatePollPost( |