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

44 lines
722 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!) {
_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
}
}
}
`