webapp/src/graphql/query/articles-load-by.ts

42 lines
681 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
export default gql`
2022-11-15 12:05:56 +00:00
query LoadShoutsByQuery($by: ShoutsBy, $limit: Int!, $offset: Int!) {
2022-11-16 07:42:43 +00:00
loadShoutsBy(by: $by, limit: $limit, offset: $offset) {
2022-09-09 11:53:35 +00:00
_id: slug
title
subtitle
slug
layout
cover
2022-11-15 12:05:56 +00:00
# community
mainTopic
2022-09-09 11:53:35 +00:00
topics {
title
body
slug
stat {
_id: shouts
shouts
authors
followers
}
}
authors {
_id: slug
name
slug
userpic
}
createdAt
2022-11-15 12:05:56 +00:00
publishedAt
2022-09-09 11:53:35 +00:00
stat {
_id: viewed
viewed
reacted
rating
}
}
}
`