webapp/src/graphql/query/topic-by-slug.ts

21 lines
306 B
TypeScript
Raw Normal View History

import { gql } from '@urql/core'
export default gql`
query TopicBySlugQuery($slug: String!) {
getTopic(slug: $slug) {
title
body
slug
pic
# community
stat {
_id: shouts
shouts
authors
# viewed
followers
}
}
}
`