MCPcopy Create free account
hub / github.com/TanStack/query / updateMovie

Function updateMovie

examples/solid/offline/src/api.ts:35–42  ·  view source on GitHub ↗
(id: string, comment: string)

Source from the content-addressed store, hash-verified

33}
34
35export const updateMovie = async (id: string, comment: string) => {
36 const response = await fetch(`/movies/${id}`, {
37 method: 'POST',
38 body: JSON.stringify({ comment }),
39 headers: { 'Content-Type': 'application/json' },
40 })
41 return await response.json()
42}
43
44export const worker = setupWorker(
45 http.get('/movies', async () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected