add topic stat

This commit is contained in:
knst-kotov
2021-12-13 19:51:01 +03:00
parent 5a47951b66
commit ab9990a616
4 changed files with 60 additions and 2 deletions

View File

@@ -331,6 +331,11 @@ type Community {
pic: String!
}
type TopicStat {
shouts: Int
views: Int
}
type Topic {
slug: String! # ID
title: String
@@ -339,6 +344,7 @@ type Topic {
parents: [String] # NOTE: topic can have parent topics
children: [String] # and children
community: String!
topicStat: TopicStat
}
# TODO: resolvers to add/remove topics from publication