webapp/src/graphql/query/article-load.ts
Ilya Y 1977493dcd
Delete reaction (#85)
* Delete reactions
2023-01-20 07:40:55 +03:00

46 lines
657 B
TypeScript

import { gql } from '@urql/core'
export default gql`
query LoadShoutQuery($slug: String!) {
loadShout(slug: $slug) {
_id: slug
id
title
subtitle
slug
layout
cover
body
media
# community
mainTopic
topics {
# id
title
body
slug
stat {
_id: shouts
shouts
authors
followers
}
}
authors {
id
name
slug
userpic
}
createdAt
publishedAt
stat {
_id: viewed
viewed
reacted
rating
}
}
}
`