This commit is contained in:
2022-11-12 00:27:17 +03:00
parent a88ede7a97
commit 6bc7b6f433
6 changed files with 325 additions and 164 deletions

View File

@@ -34,6 +34,8 @@ type ChatMember {
type Result {
error: String
uids: [String]
slugs: [String]
chat: Chat
chats: [Chat]
message: Message
@@ -197,9 +199,11 @@ type Mutation {
type Query {
# inbox
myChats: Result!
searchRecipient(q: String!): Result!
loadChat(chatId: String!, offset: Int, amount: Int): Result!
loadChats(offset: Int, amount: Int): Result!
loadMessages(chatId: String!, offset: Int, amount: Int): Result!
searchUsers(q: String!, offset: Int, amount: Int): Result!
searchChats(q: String!, offset: Int, amount: Int): Result!
searchMessages(q: String!, offset: Int, amount: Int): Result!
# auth
isEmailUsed(email: String!): Boolean!
@@ -503,4 +507,5 @@ type Chat {
admins: [User]
messages: [Message]!
unread: Int
private: Boolean
}