c5d6183f3e
* [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
24 lines
542 B
TypeScript
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;
|