webapp/src/graphql/query/article-load.ts

45 lines
646 B
TypeScript
Raw Normal View History

2022-11-18 02:23:04 +00:00
import { gql } from '@urql/core'
export default gql`
query LoadShoutQuery($slug: String!) {
loadShout(slug: $slug) {
_id: slug
title
subtitle
slug
layout
cover
body
2022-11-27 11:00:44 +00:00
media
2022-11-18 02:23:04 +00:00
# community
mainTopic
topics {
id
2022-11-18 02:23:04 +00:00
title
body
slug
stat {
_id: shouts
shouts
authors
followers
}
}
authors {
id
2022-11-18 02:23:04 +00:00
name
slug
userpic
}
createdAt
publishedAt
stat {
2022-11-23 11:34:43 +00:00
_id: viewed
viewed
2022-11-18 02:23:04 +00:00
reacted
rating
}
}
}
`