2023-12-20 23:59:16 +00:00
|
|
|
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) {
|
2023-12-20 23:59:16 +00:00
|
|
|
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
|
2023-12-20 23:59:16 +00:00
|
|
|
topics {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
body
|
|
|
|
slug
|
|
|
|
stat {
|
|
|
|
shouts
|
|
|
|
authors
|
|
|
|
followers
|
|
|
|
}
|
|
|
|
}
|
|
|
|
authors {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
2023-12-23 07:45:37 +00:00
|
|
|
pic
|
|
|
|
created_at
|
2023-12-20 23:59:16 +00:00
|
|
|
bio
|
|
|
|
}
|
2023-12-23 07:45:37 +00:00
|
|
|
created_at
|
|
|
|
published_at
|
2023-12-20 23:59:16 +00:00
|
|
|
stat {
|
|
|
|
viewed
|
|
|
|
reacted
|
|
|
|
rating
|
|
|
|
commented
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|