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

22 lines
385 B
TypeScript

import { gql } from '@apollo/client';
export interface GetPadIdQueryResponse {
sharedNotes: Array<{
padId: string;
sharedNotesExtId: string;
}>;
}
export const GET_PAD_ID = gql`
query getPadId($externalId: String!) {
sharedNotes(where: { sharedNotesExtId: { _eq: $externalId } }) {
padId
sharedNotesExtId
}
}
`;
export default {
GET_PAD_ID,
};