kandimat/redaktions-app/src/backend/queries/page_info.ts
2021-06-25 09:22:23 +02:00

29 lines
447 B
TypeScript

import { gql } from "@apollo/client";
export const GET_ALL_PAGE_INFO = gql`
query AllInfos {
allUserAppInfos {
nodes {
id
rowId
title
content
}
}
}
`;
export interface PageInfo {
id: string;
rowId: string;
title: string;
content: string;
}
export interface GetAllPageInfoResponse {
allUserAppInfos: {
nodes: Array<PageInfo>;
__typename: "UserAppInfosConnection";
};
}