webapp/src/graphql/mutation/core/follow.ts
2024-05-20 14:16:54 +03:00

31 lines
481 B
TypeScript

import { gql } from '@urql/core'
export default gql`
mutation FollowMutation($what: FollowingEntity!, $slug: String!) {
follow(what: $what, slug: $slug) {
error
authors {
id
name
slug
pic
bio
stat {
followers
shouts
comments
}
}
topics {
body
slug
stat {
shouts
authors
followers
}
}
}
}
`