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

Function getFilms

examples/react/star-wars/src/api.ts:1–4  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export const getFilms = async () => {
2 const res = await fetch('https://swapi.dev/api/films/')
3 return await res.json()
4}
5
6export const getFilm = async (filmId: string) => {
7 const res = await fetch(`https://swapi.dev/api/films/${filmId}/`)

Callers 1

FilmsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected