Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/docs/d1/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ After you have set up your database, run an SQL query from within your Worker.
"SELECT * FROM Customers WHERE CompanyName = ?",
)
.bind("Bs Beverages")
.run();
.all();
return Response.json(results);
}

Expand Down Expand Up @@ -387,7 +387,7 @@ You can query your D1 database using your Worker.
"SELECT * FROM Customers WHERE CompanyName = ?"
)
.bind("Bs Beverages")
.run();
.all();
return new Response(JSON.stringify(results), {
headers: { 'Content-Type': 'application/json' }
});
Expand Down