2022-11-18 02:23:04 +00:00
|
|
|
import { gql } from '@urql/core'
|
|
|
|
|
|
|
|
export default gql`
|
|
|
|
query LoadShoutQuery($slug: String!) {
|
|
|
|
loadShout(slug: $slug) {
|
|
|
|
_id: slug
|
|
|
|
title
|
|
|
|
subtitle
|
|
|
|
slug
|
|
|
|
layout
|
|
|
|
cover
|
|
|
|
body
|
2022-11-27 11:00:44 +00:00
|
|
|
media
|
2022-11-18 02:23:04 +00:00
|
|
|
# community
|
|
|
|
mainTopic
|
|
|
|
topics {
|
2022-12-01 18:45:35 +00:00
|
|
|
id
|
2022-11-18 02:23:04 +00:00
|
|
|
title
|
|
|
|
body
|
|
|
|
slug
|
|
|
|
stat {
|
|
|
|
_id: shouts
|
|
|
|
shouts
|
|
|
|
authors
|
|
|
|
followers
|
|
|
|
}
|
|
|
|
}
|
|
|
|
authors {
|
2022-12-01 18:45:35 +00:00
|
|
|
id
|
2022-11-18 02:23:04 +00:00
|
|
|
name
|
|
|
|
slug
|
|
|
|
userpic
|
|
|
|
}
|
|
|
|
createdAt
|
|
|
|
publishedAt
|
|
|
|
stat {
|
2022-11-23 11:34:43 +00:00
|
|
|
_id: viewed
|
|
|
|
viewed
|
2022-11-18 02:23:04 +00:00
|
|
|
reacted
|
|
|
|
rating
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|