webapp/src/graphql/query/core/author-by.ts
2023-11-28 16:18:25 +03:00

26 lines
435 B
TypeScript

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