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

Function votePoll

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

Source from the content-addressed store, hash-verified

1114`;
1115
1116export 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
1125export const CREATE_POLL_POST_MUTATION = gql`
1126 mutation CreatePollPost(

Callers 1

usePollFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected