webapp/src/graphql/query/article-reactions.ts.bak
Igor Lobanov 1a88ef109a hot fixes
2022-10-17 19:09:45 +02:00

30 lines
494 B
TypeScript

import { gql } from '@urql/core'
export default gql`
query ReactionsByShoutQuery($slug: String!, $limit: Int!, $offset: Int!) {
reactionsByShout(slug: $slug, limit: $limit, offset: $offset) {
id
body
createdAt
createdBy {
_id: slug
name
slug
userpic
}
updatedAt
replyTo {
id
}
kind
range
stat {
_id: viewed
viewed
reacted
rating
}
}
}
`