Slide 10
Slide 10 text
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. 17
{
"id": "1",
"name": "Study",
“priority": "1"
},
{
"id": “2",
"name": “Go to gym",
“priority": “5"
},…
type Query {
getTodos: [Todo]
}
type Todo {
id: ID!
name: String
description: String
priority: Int
duedate: String
}
query {
getTodos {
id
name
priority
}
}
Schema とモデルデータ
(Type)
クライアントが必要なものだ
けをリクエスト
リクエストしたデータ
のみが返される
クライアントがレスポンス形式を指定