webapp/src/graphql/query/core/article-load.ts
2024-01-23 16:22:18 +03:00

57 lines
832 B
TypeScript

import { gql } from '@urql/core'
export default gql`
query LoadShoutQuery($slug: String, $shout_id: Int) {
get_shout(slug: $slug, shout_id: $shout_id) {
id
title
lead
description
visibility
subtitle
slug
layout
cover
cover_caption
body
media
updated_by {
id
name
slug
pic
created_at
}
# community
main_topic
topics {
id
title
body
slug
stat {
shouts
authors
followers
}
}
authors {
id
name
slug
pic
created_at
}
created_at
updated_at
published_at
stat {
viewed
rating
commented
}
}
}
`