Skip to content

Commit

Permalink
alt query syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
drewjs committed Dec 2, 2023
1 parent 2e2db27 commit 1a8cddf
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 1a8cddf

Please sign in to comment.