bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/notes/queries.ts

21 lines
410 B
TypeScript
Raw Normal View History

import { gql } from '@apollo/client';
export interface PinnedPadSubscriptionResponse {
sharedNotes: Array<{
pinned: boolean;
sharedNotesExtId: string;
}>;
}
export const PINNED_PAD_SUBSCRIPTION = gql`
subscription isSharedNotesPinned {
sharedNotes(where: { pinned: { _eq: true } }) {
pinned
sharedNotesExtId
model
}
}
`;
export default { PINNED_PAD_SUBSCRIPTION };