(variables: {
postId: string;
optionId: string;
})
| 1081 | `; |
| 1082 | |
| 1083 | export const votePoll = async (variables: { |
| 1084 | postId: string; |
| 1085 | optionId: string; |
| 1086 | }): Promise<VotePollResponse> => { |
| 1087 | const res = await gqlClient.request(VOTE_POLL_MUTATION, variables); |
| 1088 | |
| 1089 | return res.votePoll; |
| 1090 | }; |
| 1091 | |
| 1092 | export const CREATE_POLL_POST_MUTATION = gql` |
| 1093 | mutation CreatePollPost( |