Skip to content

Commit

Permalink
alt query syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
drewjs committed Jun 18, 2024
1 parent dc362da commit 5212f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drizzle-orm/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>`MAX(created_at)` })
Expand Down

0 comments on commit 5212f81

Please sign in to comment.