mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
17 lines
383 B
TypeScript
17 lines
383 B
TypeScript
![]() |
import { gql, useMutation } from "@apollo/client";
|
||
|
import { HTTP_REQUEST_LOGS } from "./useHttpRequestLogs";
|
||
|
|
||
|
const CLEAR_HTTP_REQUEST_LOG = gql`
|
||
|
mutation ClearHTTPRequestLog {
|
||
|
clearHTTPRequestLog {
|
||
|
success
|
||
|
}
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
export function useClearHTTPRequestLog() {
|
||
|
return useMutation(CLEAR_HTTP_REQUEST_LOG, {
|
||
|
refetchQueries: [{ query: HTTP_REQUEST_LOGS }],
|
||
|
});
|
||
|
}
|