Delete connection from frontend (#4880)

This PR:
- creates the query to delete a connection
- creates the hook that triggers the query
- triggers the hook function when clicking on remove + get back to
connection page

---------

Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
Thomas Trompette
2024-04-08 17:27:14 +02:00
committed by GitHub
parent 97f9fc3f81
commit d4a9a26069
6 changed files with 82 additions and 4 deletions

View File

@ -0,0 +1,9 @@
import { gql } from '@apollo/client';
export const DELETE_ONE_DATABASE_CONNECTION = gql`
mutation deleteServer($input: RemoteServerIdInput!) {
deleteOneRemoteServer(input: $input) {
id
}
}
`;