22 lines
396 B
TypeScript
22 lines
396 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export interface HasPadSubscriptionResponse {
|
|
sharedNotes: Array<{
|
|
sharedNotesExtId: string;
|
|
}>;
|
|
}
|
|
|
|
export const HAS_PAD_SUBSCRIPTION = gql`
|
|
subscription hasPad($externalId: String!) {
|
|
sharedNotes(
|
|
where: { sharedNotesExtId: { _eq: $externalId } }
|
|
) {
|
|
sharedNotesExtId
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default {
|
|
HAS_PAD_SUBSCRIPTION,
|
|
};
|