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

Function getEpisode

examples/react/rick-morty/src/api.ts:6–11  ·  view source on GitHub ↗
(episodeId: string)

Source from the content-addressed store, hash-verified

4}
5
6export const getEpisode = async (episodeId: string) => {
7 const res = await fetch(
8 `https://rickandmortyapi.com/api/episode/${episodeId}`,
9 )
10 return await res.json()
11}
12
13export const getCharacters = async () => {
14 const res = await fetch('https://rickandmortyapi.com/api/character/')

Callers 2

EpisodeFunction · 0.90
EpisodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected