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

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