GraphQL No Cache (Server Component)
キャッシュ設定:
- •
cache: "no-store"
- キャッシュしない
ユーザーデータを取得中...
投稿データを取得中...
キャッシュ設定:
cache: "no-store"
- キャッシュしないユーザーデータを取得中...
投稿データを取得中...
{ "users": [ { "__typename": "User", "id": "1", "name": "John Doe", "email": "john@example.com", "createdAt": "2024-01-01" }, { "__typename": "User", "id": "2", "name": "Jane Smith", "email": "jane@example.com", "createdAt": "2024-01-02" } ] }
{ "posts": [ { "__typename": "Post", "id": "1", "title": "Hello World", "content": "First post content", "author": { "__typename": "User", "id": "1", "name": "John Doe", "email": "john@example.com" }, "createdAt": "2024-01-01" }, { "__typename": "Post", "id": "2", "title": "GraphQL with Next.js", "content": "Learn GraphQL", "author": { "__typename": "User", "id": "2", "name": "Jane Smith", "email": "jane@example.com" }, "createdAt": "2024-01-02" } ] }