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

19 lines
426 B
TypeScript

import gql from 'graphql-tag';
type DestroyPageLayoutWidgetOperationFactoryParams = {
pageLayoutWidgetId: string;
};
export const destroyPageLayoutWidgetOperationFactory = ({
pageLayoutWidgetId,
}: DestroyPageLayoutWidgetOperationFactoryParams) => ({
query: gql`
mutation DestroyPageLayoutWidget($id: String!) {
destroyPageLayoutWidget(id: $id)
}
`,
variables: {
id: pageLayoutWidgetId,
},
});