create-shout-handling

This commit is contained in:
2022-11-24 19:26:12 +03:00
parent 8216dd0d4e
commit 4eb98e7d0c
2 changed files with 40 additions and 17 deletions

View File

@@ -94,12 +94,13 @@ type ReactionUpdating {
################################### Inputs ###################################
input ShoutInput {
slug: String!
body: String!
community: String!
mainTopic: String
topic_slugs: [String]
slug: String
title: String
body: String!
authors: [String]
topics: [String]
community: Int
mainTopic: String
subtitle: String
versionOf: String
visibleForRoles: [String] # role ids are strings
@@ -165,8 +166,8 @@ type Mutation {
confirmEmail(token: String!): AuthResult!
# shout
createShout(input: ShoutInput!): Result!
updateShout(input: ShoutInput!): Result!
createShout(inp: ShoutInput!): Result!
updateShout(inp: ShoutInput!): Result!
deleteShout(slug: String!): Result!
# user profile
@@ -371,14 +372,6 @@ type User {
oid: String
}
type Collab {
authors: [String]!
invites: [String]
createdAt: DateTime!
title: String
body: String
}
enum ReactionKind {
LIKE
DISLIKE
@@ -524,3 +517,10 @@ type Chat {
unread: Int
private: Boolean
}
type Collab {
authors: [String]!
invites: [String]
shout: Shout
chat: Chat
}