create shout in db and under git

This commit is contained in:
knst-kotov
2021-08-07 16:14:20 +00:00
parent 93c6f88435
commit 46941749b6
6 changed files with 46 additions and 26 deletions

View File

@@ -45,9 +45,9 @@ type Mutation {
registerUser(email: String!, password: String!): SignInResult!
# shout
createShout: ShoutResult!
deleteShout(shoutId: Int!): Result!
rateShout(value: Int!): Result!
createShout(body: String!): ShoutResult!
deleteShout(shoutId: Int!): Result!
rateShout(shoutId: Int!, value: Int!): Result!
# profile
# rateUser(value: Int!): ResultPayload!
@@ -77,8 +77,8 @@ type Query {
# shoutsByTime(time: DateTime): [Shout]!
# getOnlineUsers: [User!]!
# topAuthors: [User]!
# topShouts: [Shout]!
topAuthors: [User]!
topShouts: [Shout]!
}
############################################ Subscription