niëmand
niëmand
Explore posts from servers
DTDrizzle Team
Created by niëmand on 8/23/2024 in #help
Type Error on Drizzle orm comparison helpers like eq, and
I have made both the repos with same drizzle version and verything is fine now.
12 replies
DTDrizzle Team
Created by niëmand on 8/23/2024 in #help
Type Error on Drizzle orm comparison helpers like eq, and
Sorry for not noticing it.
12 replies
DTDrizzle Team
Created by niëmand on 8/23/2024 in #help
Type Error on Drizzle orm comparison helpers like eq, and
It is not a major issue but it’s annoying seeing all those red errors especially in a big codebase.
12 replies
DTDrizzle Team
Created by niëmand on 8/23/2024 in #help
Type Error on Drizzle orm comparison helpers like eq, and
yes, turbo
12 replies
DTDrizzle Team
Created by niëmand on 8/23/2024 in #help
Type Error on Drizzle orm comparison helpers like eq, and
Although everything is working fine without any issues, I keep getting this type issue wherever I use and or eq. It was not like this before.
12 replies
DTDrizzle Team
Created by niëmand on 8/23/2024 in #help
Type Error on Drizzle orm comparison helpers like eq, and
Type '() => import("/home/neimand/projects/vfa/workflow-orchestrator/web/customer_portal/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@_57qwitjd4gmw2miqapdovoxvhi/node_modules/drizzle-orm/sql/sql").SQL<unknown>' is not assignable to type '() => import("/home/neimand/projects/vfa/workflow-orchestrator/web/customer_portal/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@_sojhkqd26sbdx6bx2a3qjvqx6u/node_modules/drizzle-orm/sql/sql").SQL<unknown>'
Type '() => import("/home/neimand/projects/vfa/workflow-orchestrator/web/customer_portal/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@_57qwitjd4gmw2miqapdovoxvhi/node_modules/drizzle-orm/sql/sql").SQL<unknown>' is not assignable to type '() => import("/home/neimand/projects/vfa/workflow-orchestrator/web/customer_portal/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@_sojhkqd26sbdx6bx2a3qjvqx6u/node_modules/drizzle-orm/sql/sql").SQL<unknown>'
12 replies
DTDrizzle Team
Created by niëmand on 8/23/2024 in #help
Type Error on Drizzle orm comparison helpers like eq, and
Types of property 'table' are incompatible.
Type 'PgTable<TableConfig>' is not assignable to type 'Table<TableConfig<Column<any, object, object>>>'.
Overload 2 of 3, '(left: Aliased<string>, right: string | SQLWrapper): SQL<unknown>', gave the following error.
Argument of type 'PgColumn<{ name: "email"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is not assignable to parameter of type 'Aliased<string>'.
Type 'PgColumn<{ name: "email"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is missing the following properties from type 'Aliased<string>': sql, fieldAlias
Overload 3 of 3, '(left: SQLWrapper, right: unknown): SQL<unknown>', gave the following error.
Argument of type 'PgColumn<{ name: "email"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is not assignable to parameter of type 'SQLWrapper'.
Types of property 'getSQL' are incompatible.
Types of property 'table' are incompatible.
Type 'PgTable<TableConfig>' is not assignable to type 'Table<TableConfig<Column<any, object, object>>>'.
Overload 2 of 3, '(left: Aliased<string>, right: string | SQLWrapper): SQL<unknown>', gave the following error.
Argument of type 'PgColumn<{ name: "email"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is not assignable to parameter of type 'Aliased<string>'.
Type 'PgColumn<{ name: "email"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is missing the following properties from type 'Aliased<string>': sql, fieldAlias
Overload 3 of 3, '(left: SQLWrapper, right: unknown): SQL<unknown>', gave the following error.
Argument of type 'PgColumn<{ name: "email"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is not assignable to parameter of type 'SQLWrapper'.
Types of property 'getSQL' are incompatible.
12 replies
DTDrizzle Team
Created by niëmand on 8/23/2024 in #help
Type Error on Drizzle orm comparison helpers like eq, and
Error:
Argument of type 'SQL<unknown>' is not assignable to parameter of type 'SQL<unknown> | ((aliases: Record<"user", { userId: PgColumn<{ name: "user_id"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; ... 5 more ...; generated: undefined; }, {}, {}>; ... 4 more ...; updatedAt: PgColumn<...>; }> & Record<...>...'.
Type 'import("/home/neimand/projects/vfa/workflow-orchestrator/web/customer_portal/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@_sojhkqd26sbdx6bx2a3qjvqx6u/node_modules/drizzle-orm/sql/sql").SQL<unknown>' is not assignable to type 'import("/home/neimand/projects/vfa/workflow-orchestrator/web/customer_portal/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@_57qwitjd4gmw2miqapdovoxvhi/node_modules/drizzle-orm/sql/sql").SQL<unknown>'. [2345]
2. No overload matches this call.
Overload 1 of 3, '(left: Column<ColumnBaseConfig<ColumnDataType, string>, object, object>, right: unknown): SQL<unknown>', gave the following error.
Argument of type 'PgColumn<{ name: "email"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is not assignable to parameter of type 'Column<ColumnBaseConfig<ColumnDataType, string>, object, object>'.

Argument of type 'SQL<unknown>' is not assignable to parameter of type 'SQL<unknown> | ((aliases: Record<"user", { userId: PgColumn<{ name: "user_id"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; ... 5 more ...; generated: undefined; }, {}, {}>; ... 4 more ...; updatedAt: PgColumn<...>; }> & Record<...>...'.
Type 'import("/home/neimand/projects/vfa/workflow-orchestrator/web/customer_portal/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@_sojhkqd26sbdx6bx2a3qjvqx6u/node_modules/drizzle-orm/sql/sql").SQL<unknown>' is not assignable to type 'import("/home/neimand/projects/vfa/workflow-orchestrator/web/customer_portal/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@_57qwitjd4gmw2miqapdovoxvhi/node_modules/drizzle-orm/sql/sql").SQL<unknown>'. [2345]
2. No overload matches this call.
Overload 1 of 3, '(left: Column<ColumnBaseConfig<ColumnDataType, string>, object, object>, right: unknown): SQL<unknown>', gave the following error.
Argument of type 'PgColumn<{ name: "email"; tableName: "user"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is not assignable to parameter of type 'Column<ColumnBaseConfig<ColumnDataType, string>, object, object>'.

12 replies
KKinde
Created by niëmand on 4/19/2024 in #💻┃support
work email verification
Nextjs
7 replies
KKinde
Created by niëmand on 4/19/2024 in #💻┃support
work email verification
As a workaround, I was thinking about when someone signs in/ sign up, Call an api route which checks the authenticated user’s email and if matches personal domains, then log them out and show them a alert or toast. This is not an efficient user experience because they have to type in everything first. Anyways we can work with this for now. Do you have any other suggestions on this?
7 replies
KKinde
Created by niëmand on 4/19/2024 in #💻┃support
work email verification
Thanks much for your response, since we are building an enterprise application, We wanted to have this functionality, super cool you guys have it planned. I will work on a workaround for this till kinde releases the feature.
7 replies
DTDrizzle Team
Created by niëmand on 1/7/2024 in #help
[Beginner] Drizzle select with eq not working
export const users = pgTable("user", {
id: text("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
name: text("name"),
email: text("email").notNull(),
emailVerified: timestamp("emailVerified", { mode: "date" }),
password: text("password"),
image: text("image"),

})
export const users = pgTable("user", {
id: text("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
name: text("name"),
email: text("email").notNull(),
emailVerified: timestamp("emailVerified", { mode: "date" }),
password: text("password"),
image: text("image"),

})
26 replies
DTDrizzle Team
Created by niëmand on 1/7/2024 in #help
[Beginner] Drizzle select with eq not working
Anyways thanks man
26 replies
DTDrizzle Team
Created by niëmand on 1/7/2024 in #help
[Beginner] Drizzle select with eq not working
okay it works now, wierd
26 replies
DTDrizzle Team
Created by niëmand on 1/7/2024 in #help
[Beginner] Drizzle select with eq not working
The above query returns the existing emails in the DB
26 replies
DTDrizzle Team
Created by niëmand on 1/7/2024 in #help
[Beginner] Drizzle select with eq not working
No description
26 replies
DTDrizzle Team
Created by niëmand on 1/7/2024 in #help
[Beginner] Drizzle select with eq not working
const existingUser = await db.execute(sql`select * from ${users} where ${users.email} = ${email}`)
const existingUser = await db.execute(sql`select * from ${users} where ${users.email} = ${email}`)
26 replies
DTDrizzle Team
Created by niëmand on 1/7/2024 in #help
[Beginner] Drizzle select with eq not working
yes
26 replies
DTDrizzle Team
Created by niëmand on 1/7/2024 in #help
[Beginner] Drizzle select with eq not working
No description
26 replies
DTDrizzle Team
Created by niëmand on 1/7/2024 in #help
[Beginner] Drizzle select with eq not working
It just returns an empty array even though there is records in DB
26 replies