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

44 lines
723 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-14 11:05:48 +00:00
query ShoutsReactedByUserQuery($limit: String!, $limit: Int!, $offset: Int!) {
2022-09-09 11:53:35 +00:00
userReactedShouts(slug: String!, page: Int!, size: Int!) {
_id: slug
title
subtitle
layout
slug
cover
# community
mainTopic
topics {
title
body
slug
stat {
_id: shouts
shouts
authors
followers
}
}
authors {
_id: slug
name
slug
userpic
}
createdAt
publishedAt
stat {
_id: viewed
viewed
reacted
rating
}
}
}
`