Files
twenty/packages/twenty-server/test/integration/graphql/utils/destroy-page-layout-operation-factory.util.ts
T

19 lines
378 B
TypeScript

import gql from 'graphql-tag';
type DestroyPageLayoutOperationFactoryParams = {
pageLayoutId: string;
};
export const destroyPageLayoutOperationFactory = ({
pageLayoutId,
}: DestroyPageLayoutOperationFactoryParams) => ({
query: gql`
mutation DestroyPageLayout($id: String!) {
destroyPageLayout(id: $id)
}
`,
variables: {
id: pageLayoutId,
},
});