bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/notes/queries.ts
2024-05-01 09:39:03 -03:00

21 lines
410 B
TypeScript

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 };