Buckets:
| import { ApolloClient, HttpLink, InMemoryCache } from "@apollo/client"; | |
| import { registerApolloClient } from "@apollo/experimental-nextjs-app-support/rsc"; | |
| export const { getClient } = registerApolloClient(() => { | |
| return new ApolloClient({ | |
| cache: new InMemoryCache(), | |
| link: new HttpLink({ | |
| // See more information about this GraphQL endpoint at https://studio.apollographql.com/public/spacex-l4uc6p/variant/main/home | |
| uri: "https://main--spacex-l4uc6p.apollographos.net/graphql", | |
| // you can configure the Next.js fetch cache here if you want to | |
| fetchOptions: { cache: "force-cache" }, | |
| // alternatively you can override the default `fetchOptions` on a per query basis | |
| // ```js | |
| // const result = await getClient().query({ | |
| // query: MY_QUERY, | |
| // context: { | |
| // fetchOptions: { cache: "force-cache" }, | |
| // }, | |
| // }); | |
| // ``` | |
| }), | |
| }); | |
| }); | |
Xet Storage Details
- Size:
- 932 Bytes
- Xet hash:
- 0745d3443a2e930648b5e043339853d17320e1cbb49a7b549b128e327a4b023d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.