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

46 lines
697 B
TypeScript
Raw Normal View History

import { gql } from '@urql/core'
export default gql`
2023-12-24 08:16:41 +00:00
query LoadRandomTopShoutsQuery($options: LoadShoutsOptions) {
load_shouts_random_top(options: $options) {
id
title
2023-12-18 01:15:49 +00:00
# lead
description
subtitle
slug
layout
cover
2023-12-18 01:15:49 +00:00
cover_caption
main_topic
topics {
id
title
body
slug
stat {
shouts
authors
followers
}
}
authors {
id
name
slug
2023-12-18 01:15:49 +00:00
pic
created_at
bio
}
2023-12-18 01:15:49 +00:00
created_at
published_at
stat {
viewed
reacted
rating
commented
}
}
}
`