use user slug as rater in Comment and User ratings

This commit is contained in:
knst-kotov
2022-01-14 15:19:57 +03:00
parent 65fa744ea5
commit 1cc0e3e5df
10 changed files with 17 additions and 33 deletions

View File

@@ -211,11 +211,6 @@ type Role {
}
type Rating {
rater: Int!
value: Int!
}
type ShoutRating {
rater: String!
value: Int!
}
@@ -293,7 +288,7 @@ type Comment {
type CommentRating {
id: Int!
comment_id: Int!
createdBy: Int!
createdBy: String!
createdAt: DateTime!
value: Int!
}
@@ -304,7 +299,7 @@ type Shout {
body: String!
createdAt: DateTime!
authors: [User!]!
ratings: [ShoutRating]
ratings: [Rating]
visibleFor: [User]
community: Int
cover: String