Skip to content

Instantly share code, notes, and snippets.

@PaulieScanlon
Created May 17, 2024 21:35
Show Gist options
  • Save PaulieScanlon/4ca03866ebfbd6be192a3e5dfbb0230c to your computer and use it in GitHub Desktop.
Save PaulieScanlon/4ca03866ebfbd6be192a3e5dfbb0230c to your computer and use it in GitHub Desktop.
Join Example Drizzle ORM query
.select({
id: orders.order_id,
order_date: orders.order_date,
first_name: orders.first_name,
last_name: orders.last_name,
})
.from(orders)
.innerJoin(customers, eq(orders.order_id, customers.customer_id))
.limit(50);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment