Add destroy for core view resolvers --------- Co-authored-by: Charles Bochet <charles@twenty.com>
17 lines
261 B
TypeScript
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,
|
|
},
|
|
});
|