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

31 lines
518 B
TypeScript
Raw Normal View History

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