webapp/src/graphql/query/core/articles-load-random-topic.ts

63 lines
994 B
TypeScript
Raw Normal View History

import { gql } from '@urql/core'
export default gql`
query LoadRandomTopicShoutsQuery($limit: Int!) {
2023-12-23 07:45:37 +00:00
load_shouts_random_topic(limit: $limit) {
topic {
id
title
body
slug
pic
# community
stat {
shouts
authors
followers
# viewed
}
}
shouts {
id
title
lead
description
subtitle
slug
layout
cover
lead
# community
2023-12-23 07:45:37 +00:00
main_topic
topics {
id
title
body
slug
stat {
shouts
authors
followers
}
}
authors {
id
name
slug
2023-12-23 07:45:37 +00:00
pic
created_at
bio
}
2023-12-23 07:45:37 +00:00
created_at
published_at
featured_at
stat {
viewed
rating
commented
}
}
}
}
`