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

20 lines
286 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 {
shouts
authors
# viewed
followers
}
}
}
`