webapp/src/graphql/query/core/authors-load-by.ts
2024-02-23 02:15:17 +03:00

24 lines
426 B
TypeScript

import { gql } from '@urql/core'
export default gql`
query AuthorsAllQuery($by: AuthorsBy!, $limit: Int, $offset: Int) {
load_authors_by(by: $by, limit: $limit, offset: $offset) {
id
slug
name
bio
pic
created_at
stat {
shouts
authors
followers
rating
comments: commented
rating_shouts
rating_comments
}
}
}
`