webapp/src/graphql/mutation/follow.ts

10 lines
186 B
TypeScript

import { gql } from '@urql/core'
export default gql`
mutation FollowMutation($what: FollowingEntity!, $slug: String!) {
follow(what: $what, slug: $slug) {
error
}
}
`