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

Function votePoll

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

Source from the content-addressed store, hash-verified

1160`;
1161
1162export const votePoll = async (variables: {
1163 postId: string;
1164 optionId: string;
1165}): Promise<VotePollResponse> => {
1166 const res = await gqlClient.request(VOTE_POLL_MUTATION, variables);
1167
1168 return res.votePoll;
1169};
1170
1171export const CREATE_POLL_POST_MUTATION = gql`
1172 mutation CreatePollPost(

Callers 1

usePollFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected