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

Function votePoll

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

Source from the content-addressed store, hash-verified

1120`;
1121
1122export const votePoll = async (variables: {
1123 postId: string;
1124 optionId: string;
1125}): Promise<VotePollResponse> => {
1126 const res = await gqlClient.request(VOTE_POLL_MUTATION, variables);
1127
1128 return res.votePoll;
1129};
1130
1131export const CREATE_POLL_POST_MUTATION = gql`
1132 mutation CreatePollPost(

Callers 1

usePollFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected