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

19 lines
402 B
TypeScript

import gql from 'graphql-tag';
type DestroyPageLayoutTabOperationFactoryParams = {
pageLayoutTabId: string;
};
export const destroyPageLayoutTabOperationFactory = ({
pageLayoutTabId,
}: DestroyPageLayoutTabOperationFactoryParams) => ({
query: gql`
mutation DestroyPageLayoutTab($id: String!) {
destroyPageLayoutTab(id: $id)
}
`,
variables: {
id: pageLayoutTabId,
},
});