return user ratings; add getUsersBySlugs

This commit is contained in:
knst-kotov
2021-12-11 19:38:54 +03:00
parent d578072563
commit e8780cfb86
4 changed files with 12 additions and 29 deletions

View File

@@ -129,7 +129,7 @@ type Query {
# profile
getCurrentUser: UserResult!
getUserBySlug(slug: String!): UserResult!
getUsersBySlugs(slugs: [String]!): [User]!
# rateUser(shout: Int): Int!
getUserRoles(slug: String!): [Role]!
@@ -161,9 +161,6 @@ type Query {
# communities
getCommunity(slug: String): Community!
getCommunities: [Community]!
# my feed
authorsBySlugs(slugs: [String]!): [User]!
}
############################################ Subscription
@@ -203,7 +200,7 @@ type Role {
}
type Rating {
createdBy: Int!
rater_id: Int!
value: Int!
}
@@ -235,7 +232,7 @@ type User {
muted: Boolean
updatedAt: DateTime
wasOnlineAt: DateTime
rating: Int
ratings: [Rating]
bio: String
notifications: [Int]
topics: [String] # user subscribed topics