From 1a8cddf0bdc94f940a5d95eae0576b21ae0f709d Mon Sep 17 00:00:00 2001 From: Andrew Galvan Date: Mon, 16 Oct 2023 07:25:56 -0700 Subject: [PATCH] alt query syntax --- drizzle-orm/app/routes/_index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drizzle-orm/app/routes/_index.tsx b/drizzle-orm/app/routes/_index.tsx index 5c78a49e..9751ba80 100644 --- a/drizzle-orm/app/routes/_index.tsx +++ b/drizzle-orm/app/routes/_index.tsx @@ -22,7 +22,7 @@ export async function action({ request }: ActionArgs) { } export async function loader() { - const rowsQuery = db.select().from(example); + const rowsQuery = db.query.example.findMany(); const lastUpdatedQuery = db .select({ updated: sql`MAX(created_at)` })