webapp/src/graphql/query/articles-recent-published.ts

42 lines
663 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
export default gql`
2022-09-14 11:05:48 +00:00
query RecentPublishedQuery($limit: Int!, $offset: Int!) {
recentPublished(limit: $limit, offset: $offset) {
2022-09-09 11:53:35 +00:00
_id: slug
title
subtitle
slug
layout
cover
topics {
title
body
slug
stat {
_id: shouts
shouts
authors
followers
}
}
authors {
_id: slug
name
slug
userpic
}
# community
mainTopic
publishedAt
createdAt
stat {
_id: viewed
viewed
reacted
rating
}
}
}
`