import { ApolloCache } from "@apollo/client/cache" ; import { EpisodeListEpisodes } from "@/graphql/generated/types" ; import { getIsWatched } from "@/utils/cache" ; export const isWatchedResolver = ( episode , _ , { cache } ) => getIsWatched ( cache , episode . animeId , episode . episodeNumber ) ;