webapp/src/graphql/query/core/author-by.ts
2023-12-14 02:56:44 +03:00

26 lines
407 B
TypeScript

import { gql } from '@urql/core'
export default gql`
query GetAuthorBy($slug: String, $author_id: Int) {
get_author(slug: $slug, author_id: $author_id) {
id
slug
name
bio
about
pic
# communities
links
created_at
last_seen
stat {
shouts
followers
followings
rating
commented
}
}
}
`