webapp/src/graphql/mutation/core/follow.ts

31 lines
481 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
export default gql`
mutation FollowMutation($what: FollowingEntity!, $slug: String!) {
2022-09-09 11:53:35 +00:00
follow(what: $what, slug: $slug) {
error
2024-03-12 08:52:39 +00:00
authors {
id
2024-05-20 11:16:54 +00:00
name
2024-03-12 08:52:39 +00:00
slug
2024-05-20 11:16:54 +00:00
pic
bio
stat {
followers
shouts
comments
}
}
topics {
body
slug
stat {
shouts
authors
followers
}
2024-03-12 08:52:39 +00:00
}
2022-09-09 11:53:35 +00:00
}
}
`