bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/plugins-engine/data-channel/queries.ts
Guilherme Pereira Leme c5d6183f3e
feat(plugin): delete and reset features to data-channel (#19503)
* [plugin-sdk-data-channel-with-delete] - refactor data channel to add delete and reset features

* [plugin-sdk-data-channel-with-delete] - bumping version and fix lint errors
2024-01-30 18:38:09 -03:00

24 lines
542 B
TypeScript

import { gql } from '@apollo/client';
const PLUGIN_DATA_CHANNEL_FETCH_QUERY = gql`
subscription FetchPluginDataChannelMessageMsg($pluginName: String!, $channelName: String!){
pluginDataChannelMessage(
order_by: {createdAt: asc},
where: {
pluginName: { _eq: $pluginName }
dataChannel: { _eq: $channelName }
}
) {
createdAt,
dataChannel,
messageId,
payloadJson,
fromUserId,
pluginName,
toRoles,
}
}
`;
export default PLUGIN_DATA_CHANNEL_FETCH_QUERY;