31 lines
481 B
TypeScript
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`
|