webapp/src/graphql/query/core/author-follows.ts
2024-05-08 23:43:38 +03:00

39 lines
634 B
TypeScript

import { gql } from '@urql/core'
export default gql`
query GetAuthorFollows($slug: String, $user: String, $author_id: Int) {
get_author_follows(slug: $slug, user: $user, author_id: $author_id) {
error
authors {
id
slug
name
pic
bio
created_at
stat {
shouts
authors
followers
}
}
topics {
id
slug
title
stat {
shouts
authors
followers
}
}
#communities {
# id
# slug
# name
# pic
#}
}
}
`