webapp/src/graphql/query/author-reactions.ts

31 lines
509 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
export default gql`
query ReactionsByAuthorQuery($author: String!, $page: Int!, $size: Int!) {
reactionsByAuthor(slug: $author, page: $page, size: $size) {
id
body
createdAt
updatedAt
replyTo {
id
createdBy {
slug
userpic
name
}
body
kind
}
kind
range
stat {
_id: viewed
viewed
reacted
rating
}
}
}
`