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

30 lines
511 B
TypeScript
Raw Normal View History

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