webapp/src/graphql/query/core/author-by.ts

26 lines
435 B
TypeScript
Raw Normal View History

import { gql } from '@urql/core'
export default gql`
2023-11-28 13:18:25 +00:00
query GetAuthorBy($slug: String, $author_id: Int, $user: String) {
get_author(slug: $slug, author_id: $author_id, user: $user) {
2022-12-17 03:27:00 +00:00
id
slug
name
bio
2022-12-09 06:09:21 +00:00
about
2023-11-28 13:18:25 +00:00
pic
# communities
links
2023-11-28 13:18:25 +00:00
created_at
last_seen
stat {
shouts
followers
followings
rating
commented
}
}
}
`