Merge pull request #20188 from ramonlsouza/add-sub-names

refactor: add names to unnamed queries
This commit is contained in:
Ramón Souza 2024-05-07 14:14:54 -03:00 committed by GitHub
commit b709b410d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ export interface WelcomeMsgsResponse {
} }
export const GET_WELCOME_MESSAGE = gql` export const GET_WELCOME_MESSAGE = gql`
query { query getWelcomeMessage{
user_welcomeMsgs { user_welcomeMsgs {
welcomeMsg welcomeMsg
welcomeMsgForModerators welcomeMsgForModerators

View File

@ -11,7 +11,7 @@ export interface UnreadChatsSubscriptionResponse {
} }
export const UNREAD_CHATS_SUBSCRIPTION = gql` export const UNREAD_CHATS_SUBSCRIPTION = gql`
subscription { subscription unreadChatsSubscription {
chat( chat(
where: { where: {
totalUnread: { _gt: 0 }, totalUnread: { _gt: 0 },