get all chat users

This commit is contained in:
Igor Lobanov
2022-11-17 00:34:24 +01:00
parent 5704b08d12
commit 3a8f630c6d
3 changed files with 24 additions and 3 deletions

View File

@@ -243,6 +243,7 @@ type Query {
loadChats( limit: Int, offset: Int): Result! # your chats
loadMessagesBy(by: MessagesBy!, limit: Int, offset: Int): Result!
searchUsers(query: String!, limit: Int, offset: Int): Result!
chatUsersAll: [ChatUser]!
# auth
isEmailUsed(email: String!): Boolean!
@@ -348,6 +349,14 @@ type User {
oid: String
}
type ChatUser {
id: Int!
slug: String!
name: String!
userpic: String
lastSeen: DateTime
}
type Collab {
authors: [String]!
invites: [String]