Buckets:
| "use client"; | |
| import { TypedDocumentNode, gql, useSuspenseQuery } from "@apollo/client"; | |
| export const getRockets: TypedDocumentNode< | |
| { | |
| rockets: Array<{ | |
| id: string; | |
| name: string; | |
| }>; | |
| }, | |
| { | |
| limit: number; | |
| } | |
| > = gql` | |
| query GetRockets($limit: Int) { | |
| rockets(limit: $limit) { | |
| id | |
| name | |
| } | |
| } | |
| `; | |
| /** | |
| * Example Client Component that uses Apollo Client's `useSuspenseQuery` hook for data fetching. | |
| */ | |
| export function FiveRockets() { | |
| const { data } = useSuspenseQuery(getRockets, { | |
| variables: { limit: 5 }, | |
| }); | |
| return ( | |
| <ul> | |
| {data.rockets.map((rocket) => ( | |
| <li key={rocket.id}>{rocket.name}</li> | |
| ))} | |
| </ul> | |
| ); | |
| } | |
Xet Storage Details
- Size:
- 699 Bytes
- Xet hash:
- 433fbadc6bb023d52749365680cc29ae53ef7882841e61fd92ab583a1f4f5578
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.