Files
twenty/packages/twenty-server/test/integration/graphql/utils/destroy-view-operation-factory.util.ts
T
983c40485b Add destroy for core view resolvers (#13745)
Add destroy for core view resolvers

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2025-08-09 00:44:17 +02:00

17 lines
261 B
TypeScript

import gql from 'graphql-tag';
export const destroyViewOperationFactory = ({
viewId,
}: {
viewId: string;
}) => ({
query: gql`
mutation DestroyCoreView($id: String!) {
destroyCoreView(id: $id)
}
`,
variables: {
id: viewId,
},
});