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

43 lines
646 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
export default gql`
2022-11-18 02:23:04 +00:00
query LoadShoutsQuery($options: LoadShoutsOptions) {
loadShouts(options: $options) {
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 {
2022-12-03 07:15:13 +00:00
# id
2022-09-09 11:53:35 +00:00
title
body
slug
stat {
_id: shouts
shouts
authors
followers
}
}
authors {
id
2022-09-09 11:53:35 +00:00
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
}
}
}
`