shoutsRatedByUser only for auth user

This commit is contained in:
knst-kotov
2022-04-29 11:01:04 +03:00
parent 6919b2603c
commit 86383cb6c0
2 changed files with 15 additions and 4 deletions

View File

@@ -50,6 +50,11 @@ type ShoutResult {
shout: Shout
}
type ShoutsResult {
error: String
shouts: [Shout]
}
type CommentResult {
error: String
comment: Comment
@@ -140,8 +145,8 @@ type Query {
userSubscribers(slug: String!): [User]!
userSubscribedTopics(slug: String!): [String]!
shoutsRatedByUser(page: Int!, size: Int!): ShoutsResult!
shoutsCommentedByUser(slug: String!, page: Int!, size: Int!): [Shout]!
shoutsRatedByUser(slug: String!, page: Int!, size: Int!): [Shout]!
# shouts
getShoutBySlug(slug: String!): Shout!