webapp/src/graphql/query/article-load.ts
2023-05-04 14:16:39 +02:00

44 lines
615 B
TypeScript

import { gql } from '@urql/core'
export default gql`
query LoadShoutQuery($slug: String!) {
loadShout(slug: $slug) {
id
title
subtitle
slug
layout
cover
body
media
# community
mainTopic
topics {
id
title
body
slug
stat {
shouts
authors
followers
}
}
authors {
id
name
slug
userpic
}
createdAt
publishedAt
stat {
viewed
reacted
rating
commented
}
}
}
`