bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/chat/chat-graphql/queries.ts
2023-04-25 17:47:44 -03:00

45 lines
806 B
TypeScript

import { gql } from '@apollo/client';
export const IS_TYPING_PUBLIC_SUBSCRIPTION = gql`subscription IsTyping($chatId: String!) {
user_typing_public(
limit: 4,
where: {
isCurrentlyTyping: {_eq: true}
chatId: {_eq: $chatId}
}
) {
meetingId
chatId
userId
typingAt
isCurrentlyTyping
user {
name
}
}
}`;
export const IS_TYPING_PRIVATE_SUBSCRIPTION = gql`subscription IsTyping($chatId: String!) {
user_typing_private(
limit: 4,
where: {
isCurrentlyTyping: {_eq: true}
chatId: {_eq: $chatId}
}
) {
meetingId
chatId
userId
typingAt
isCurrentlyTyping
user {
name
}
}
}`;
export default {
IS_TYPING_PUBLIC_SUBSCRIPTION,
IS_TYPING_PRIVATE_SUBSCRIPTION,
};