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

43 lines
630 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
# 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
}
}
}
`