Skip to content

Commit 5212f81

Browse files
committed
alt query syntax
1 parent dc362da commit 5212f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drizzle-orm/app/routes/_index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function action({ request }: ActionArgs) {
2222
}
2323

2424
export async function loader() {
25-
const rowsQuery = db.select().from(example);
25+
const rowsQuery = db.query.example.findMany();
2626

2727
const lastUpdatedQuery = db
2828
.select({ updated: sql<string>`MAX(created_at)` })

0 commit comments

Comments
 (0)