add shout stat

This commit is contained in:
knst-kotov
2021-12-17 11:22:31 +01:00
parent 944af4e96c
commit 26e903d4f2
4 changed files with 54 additions and 8 deletions

View File

@@ -307,8 +307,6 @@ type Shout {
community: Int
cover: String
layout: String
rating: Int
views: Int
# replyTo: Shout
versionOf: Shout
tags: [String] # actual values
@@ -322,6 +320,14 @@ type Shout {
deletedBy: Int
publishedBy: Int # if there is no published field - it is not published
publishedAt: DateTime
stat: ShoutStat
}
type ShoutStat {
views: Int!
comments: Int!
ratings: Int!
}
type Community {