schema-unique-type-result-fix

This commit is contained in:
Tony Rewin 2023-10-06 13:01:47 +03:00
parent 76b5512f4f
commit c7110e234f

View File

@ -28,7 +28,7 @@ input ChatInput {
description: String
}
type Result {
type ChatResult {
error: String
chat: Chat
chats: [Chat]
@ -40,14 +40,14 @@ type Result {
type Mutation {
# inbox
createChat(title: String, members: [Int]!): Result!
updateChat(chat: ChatInput!): Result!
deleteChat(chatId: String!): Result!
createChat(title: String, members: [Int]!): ChatResult!
updateChat(chat: ChatInput!): ChatResult!
deleteChat(chatId: String!): ChatResult!
createMessage(chat: String!, body: String!, replyTo: Int): Result!
updateMessage(chatId: String!, id: Int!, body: String!): Result!
deleteMessage(chatId: String!, id: Int!): Result!
markAsRead(chatId: String!, ids: [Int]!): Result!
createMessage(chat: String!, body: String!, replyTo: Int): ChatResult!
updateMessage(chatId: String!, id: Int!, body: String!): ChatResult!
deleteMessage(chatId: String!, id: Int!): ChatResult!
markAsRead(chatId: String!, ids: [Int]!): ChatResult!
}
@ -62,11 +62,11 @@ input MessagesBy {
type Query {
# inbox
loadChats( limit: Int, offset: Int): Result! # your chats
loadMessagesBy(by: MessagesBy!, limit: Int, offset: Int): Result!
loadRecipients(limit: Int, offset: Int): Result!
searchRecipients(query: String!, limit: Int, offset: Int): Result!
searchMessages(by: MessagesBy!, limit: Int, offset: Int): Result!
loadChats( limit: Int, offset: Int): ChatResult! # your chats
loadMessagesBy(by: MessagesBy!, limit: Int, offset: Int): ChatResult!
loadRecipients(limit: Int, offset: Int): ChatResult!
searchRecipients(query: String!, limit: Int, offset: Int): ChatResult!
searchMessages(by: MessagesBy!, limit: Int, offset: Int): ChatResult!
_service: _Service!
}