signIn/getSession optimization (#95)

Co-authored-by: Igor Lobanov <igor.lobanov@onetwotrip.com>
This commit is contained in:
Ilya Y
2023-10-19 17:54:38 +03:00
committed by GitHub
parent 4c6747ab35
commit da8ee9b9c3
4 changed files with 41 additions and 60 deletions

View File

@@ -8,19 +8,10 @@ enum MessageStatus {
DELETED
}
type UserFollowings {
unread: Int
topics: [String]
authors: [String]
reactions: [Int]
communities: [String]
}
type AuthResult {
error: String
token: String
user: User
news: UserFollowings
}
type ChatMember {
@@ -263,6 +254,11 @@ type NotificationsQueryResult {
totalUnreadCount: Int!
}
type MySubscriptionsQueryResult {
topics: [Topic]!
authors: [Author]!
}
type Query {
# inbox
loadChats( limit: Int, offset: Int): Result! # your chats
@@ -300,6 +296,8 @@ type Query {
topicsByAuthor(author: String!): [Topic]!
loadNotifications(params: NotificationsQueryParams!): NotificationsQueryResult!
loadMySubscriptions: MySubscriptionsQueryResult
}
############################################ Entities