Add operationName for subscriptions when its missing

This commit is contained in:
Gustavo Trott 2024-03-28 12:09:37 -03:00
parent fe8eacb647
commit 94a3275928
8 changed files with 12 additions and 12 deletions

View File

@ -1,6 +1,6 @@
import { gql } from '@apollo/client';
export const CONNECTION_STATUS_REPORT_SUBSCRIPTION = gql`subscription {
export const CONNECTION_STATUS_REPORT_SUBSCRIPTION = gql`subscription ConnStatusReport {
user_connectionStatusReport {
user {
userId
@ -17,7 +17,7 @@ export const CONNECTION_STATUS_REPORT_SUBSCRIPTION = gql`subscription {
}
}`;
export const CONNECTION_STATUS_SUBSCRIPTION = gql`subscription {
export const CONNECTION_STATUS_SUBSCRIPTION = gql`subscription ConnStatus {
user_connectionStatus {
connectionAliveAt
userClientResponseAt

View File

@ -14,7 +14,7 @@ export interface GetTimerResponse {
}
export const GET_TIMER = gql`
subscription MySubscription {
subscription Timer {
timer {
accumulated
active

View File

@ -1,6 +1,6 @@
import { gql } from '@apollo/client';
export const CHATS_SUBSCRIPTION = gql`subscription {
export const CHATS_SUBSCRIPTION = gql`subscription Chats {
chat (order_by: [
{public: desc},
{totalUnread: desc},

View File

@ -1,6 +1,6 @@
import { gql } from '@apollo/client';
export const MEETING_PERMISSIONS_SUBSCRIPTION = gql`subscription {
export const MEETING_PERMISSIONS_SUBSCRIPTION = gql`subscription MeetingPermissions {
meeting {
meetingId
isBreakout
@ -29,7 +29,7 @@ export const MEETING_PERMISSIONS_SUBSCRIPTION = gql`subscription {
}
}`;
export const CURRENT_USER_SUBSCRIPTION = gql`subscription {
export const CURRENT_USER_SUBSCRIPTION = gql`subscription UserListCurrUser {
user_current {
userId
isModerator
@ -40,7 +40,7 @@ export const CURRENT_USER_SUBSCRIPTION = gql`subscription {
}`;
export const USER_AGGREGATE_COUNT_SUBSCRIPTION = gql`
subscription {
subscription UserListCount {
user_aggregate {
aggregate {
count

View File

@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
const CHATS_SUBSCRIPTION = gql`
subscription {
subscription ChatSubscription {
chat(
order_by: [
{ public: desc }

View File

@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
const POLL_RESULTS_SUBSCRIPTION = gql`
subscription {
subscription PollResults {
poll (where: {published: {_eq: true}}, order_by: [{ publishedAt: desc }], limit: 1) {
ended
published

View File

@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
const POLL_SUBSCRIPTION = gql`
subscription {
subscription PollPublished {
poll {
published
}

View File

@ -62,7 +62,7 @@ subscription UserListSubscription($offset: Int!, $limit: Int!) {
}`;
export const USER_AGGREGATE_COUNT_SUBSCRIPTION = gql`
subscription {
subscription UsersCount {
user_aggregate {
aggregate {
count
@ -72,7 +72,7 @@ export const USER_AGGREGATE_COUNT_SUBSCRIPTION = gql`
`;
export const USERS_OVERVIEW = gql`
subscription Users {
subscription UsersOverview {
user {
userId
name