diff --git a/docs/guides/ecosystem/drizzle.md b/docs/guides/ecosystem/drizzle.md index 5dbe21b1a1..4f14c09590 100644 --- a/docs/guides/ecosystem/drizzle.md +++ b/docs/guides/ecosystem/drizzle.md @@ -34,8 +34,9 @@ To see the database in action, add these lines to `index.ts`. import { db } from "./db"; import { sql } from "drizzle-orm"; -const query = sql`select "hello world" as text;` -console.log(await db.get(query)); +const query = sql`select "hello world" as text`; +const result = db.get<{ text: string }>(query); +console.log(result); ``` ---