import { ApolloClient, DefaultOptions, InMemoryCache } from "@apollo/client"; const defaultOptions = { watchQuery: { fetchPolicy: "no-cache", errorPolicy: "ignore", }, query: { fetchPolicy: "no-cache", errorPolicy: "all", }, }; const client = new ApolloClient({ uri: "https://graphql.anilist.co", cache: new InMemoryCache(), defaultOptions: defaultOptions, }); export { client };