MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / remove

Function remove

examples/loco_example/frontend/src/App.jsx:54–62  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

52
53
54 const remove = async (id) => {
55 try {
56 const response = await axios.delete(`api/notes/${id}`);
57 return response.data;
58 } catch (error) {
59 console.error('Error posting todo:', error);
60 throw error;
61 }
62 };
63
64
65 const mutation = useMutation(remove, {

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected