webapp/src/graphql/query/author-reacted-shouts.ts

42 lines
670 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
// WARNING: need Auth header
export default gql`
2022-09-20 08:26:12 +00:00
query ShoutsReactedByUserQuery($slug: String!, $limit: Int!, $offset: Int!) {
2022-09-09 11:53:35 +00:00
userReactedShouts(slug: String!, page: Int!, size: Int!) {
title
subtitle
layout
slug
cover
# community
mainTopic
topics {
2022-12-03 07:15:13 +00:00
# id
2022-09-09 11:53:35 +00:00
title
body
slug
stat {
shouts
authors
followers
}
}
authors {
id
2022-09-09 11:53:35 +00:00
name
slug
userpic
}
createdAt
publishedAt
stat {
viewed
reacted
rating
}
}
}
`