MySQL (Planetscale): Cannot read properties of undefined (reading 'name')
Deploying Next.js w/ Drizzle on Vercel with Turborepo
drizzle-orm
as a shared package.
A bit of context - I'm using a monorepo with drizzle and share the tables, types and schemas across all my apps by having a shared packages/database
library - that my Next.js app is consuming.
One issue I've had is that in order to get drizzle-orm
working in my monorepo I've had to install it globally ie. in my root level package.json
. ...uuid missing in drizzle-orm/mysql-core?
DatabaseError: Duplicate column name 'id'
numeric returns string when querying with Postgres
Need help transform a nested prisma query to drizzle
Type error for eq()
Expected 1 arguments, but got 2.
in a statement like this: .where(and(eq(menu.id, form.data.id)), eq(menu.userId, session.userId));
.where(and(eq(menu.id, form.data.id)), eq(menu.userId, session.userId));
InArray Function not Working
Raw sql nullable types, sql<Type | undefined>
const result = await db.select({
customField: sql<Type | null>`...`
const result = await db.select({
customField: sql<Type | null>`...`
Using with NestJS and Zod
drizzle-zod
and nestjs-zod
together to create Zod schemas and classes for insert and select. I mostly got it to work, even with Swagger! However, I'm running into a problem with one of the create schemas. My table is defined:
```ts
export const addresses = pgTable('addresses', {
id: uuid('id').defaultRandom().primaryKey(),...Many-to-Many joins results in weird values
Is drizzle fully framework agnostic?
Typing columns based on Table
paginateQuery
function that would let me pass in the table and then an array of only columns from that table would be accepted. Is there any way to do this with the Drizzle types? I feel like I have gotten close a few times but nothing fully gets there. Thanks!
```ts
const getFilterSql = <TColumn extends AnyPgColumn>(
filter: string,...Does onConflictDoUpdate work with composite primary keys?
Support for multiple with statements?
use constant in between operator

Type error: Could not find a declaration file for module 'drizzle-kit'.

Typescript error that doesn't make a whole lot of sense when calling db.select or db.insert

Are default values not transferred over via drizzle-zod?
default([])
in my schema
file that when I create a Zod object, I have to re-do the defaults?