session-info

This commit is contained in:
2022-08-12 15:50:59 +03:00
parent 0873304068
commit 9c60318919
4 changed files with 21 additions and 20 deletions

View File

@@ -35,10 +35,19 @@ type UserChatsResult {
chats: [String]
}
type SessionInfo {
unread: Int
topics: [String]
authors: [String]
reactions: [Int]
communities: [String]
}
type AuthResult {
error: String
token: String
user: User
info: SessionInfo
}
type Result {
@@ -308,7 +317,7 @@ type User {
id: Int!
username: String! # to login, ex. email
createdAt: DateTime!
lastSeen: DataTime
lastSeen: DateTime
slug: String!
name: String # to display
email: String