Add operationName for subscriptions when its missing
This commit is contained in:
parent
fe8eacb647
commit
94a3275928
@ -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
|
||||
|
@ -14,7 +14,7 @@ export interface GetTimerResponse {
|
||||
}
|
||||
|
||||
export const GET_TIMER = gql`
|
||||
subscription MySubscription {
|
||||
subscription Timer {
|
||||
timer {
|
||||
accumulated
|
||||
active
|
||||
|
@ -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},
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
const CHATS_SUBSCRIPTION = gql`
|
||||
subscription {
|
||||
subscription ChatSubscription {
|
||||
chat(
|
||||
order_by: [
|
||||
{ public: desc }
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
const POLL_SUBSCRIPTION = gql`
|
||||
subscription {
|
||||
subscription PollPublished {
|
||||
poll {
|
||||
published
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user