Your D1 Database contains the following data:
> SELECT * FROM comments LIMIT 10;
[
{
"id": 2,
"author": "Serena",
"content": "Great job!",
"notes": null,
"updatedAt": null
},
{
"id": 3,
"author": "Max",
"content": "Keep up the good work!",
"notes": null,
"updatedAt": null
},
{
"id": 5,
"author": "O",
"content": "Hi there...",
"notes": "My first note!",
"updatedAt": null
}
]
Build a comments API with Workers and D1