-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:d1D1: https://developers.cloudflare.com/d1/D1: https://developers.cloudflare.com/d1/product:workersRelated to Workers productRelated to Workers product
Description
Existing documentation URL(s)
What changes are you suggesting?
const db = await mf.getD1Database("DB");
const { results } = await db.prepare("<Query>");The above code in the document is incorrect.
D1Database.prepare returns D1PreparedStatement.
But it looks as if it is returning D1Result.
Should call run or all!
Additional information
No response
Metadata
Metadata
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:d1D1: https://developers.cloudflare.com/d1/D1: https://developers.cloudflare.com/d1/product:workersRelated to Workers productRelated to Workers product