From 4fb5ab0ca84e104e47cccaedd8a5634081b54834 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 25 Oct 2023 12:52:15 -0700 Subject: [PATCH] Update drizzle guide --- docs/guides/ecosystem/drizzle.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); ``` ---