query HomeScreen($userId: ID!) { user(id: $userId) { name } orders(userId: $userId, limit: 5) { id total status } }
cd ch09-implementation-options docker compose up -d curl -s http://localhost:3000/health
cd ch09-implementation-options docker compose up -d curl.exe -s http://localhost:3000/health
curl -s http://localhost:3000/graphql -H "Content-Type: application/json" -d @requests/home-screen.json
curl.exe -s http://localhost:3000/graphql -H "Content-Type: application/json" -d "@requests/home-screen.json"
REST では画面ごとにエンドポイントを追加、GraphQL ではクエリの違いで吸収