webapp/src/graphql/query/articles-load-unrated.ts
Igor Lobanov d2977b9b21
Feature/unrated (#334)
* Rate first markup

* WIP

* lint

* unrated articles + random top fixes

---------

Co-authored-by: ilya-bkv <i.yablokov@ccmp.me>
Co-authored-by: Igor Lobanov <igor.lobanov@onetwotrip.com>
2023-12-14 19:45:50 +01:00

47 lines
678 B
TypeScript

import { gql } from '@urql/core'
export default gql`
query LoadUnratedShoutsQuery($limit: Int!) {
loadUnratedShouts(limit: $limit) {
id
title
lead
description
subtitle
slug
layout
cover
lead
# community
mainTopic
topics {
id
title
body
slug
stat {
shouts
authors
followers
}
}
authors {
id
name
slug
userpic
createdAt
bio
}
createdAt
publishedAt
stat {
viewed
reacted
rating
commented
}
}
}
`