webapp/src/graphql/query/core/comment-ratings-load.ts

30 lines
482 B
TypeScript
Raw Normal View History

2024-07-22 11:24:36 +00:00
import { gql } from '@urql/core'
export default gql`
query LoadReactions($comment: Int!, $limit: Int, $offset: Int) {
load_comment_ratings(comment: $comment, limit: $limit, offset: $offset) {
id
kind
body
reply_to
shout {
id
slug
title
}
created_by {
id
name
slug
pic
created_at
}
created_at
updated_at
stat {
rating
}
}
}
`