MCPcopy Create free account
hub / github.com/dailydotdev/apps / votePoll

Function votePoll

packages/shared/src/graphql/posts.ts:1077–1084  ·  view source on GitHub ↗
(variables: {
  postId: string;
  optionId: string;
})

Source from the content-addressed store, hash-verified

1075`;
1076
1077export 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
1086export const CREATE_POLL_POST_MUTATION = gql`
1087 mutation CreatePollPost(

Callers 1

usePollFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected