Raphaël Moreau

Results 28 comments of Raphaël Moreau

I provide some unit test. I'll not be able to handle form schema with nested object :/ I try and I fail when it comes to `getField` (new function). Obviously,...

Hello :) You can do it playing with "absolute" positioning. This is what I made : (My example may not work, it's a light extract from my code base ^^)...

What is `SanitizedUserFields`? New to Drizzle, I'm testing right now a similar example and it works in both cases.

I have tried this: ```ts const SanitizedUserFields = { id: Users.id, fullName: Users.fullName, type: Users.type, email: Users.email, picture: Users.picture, createdAt: Users.createdAt, }; const payload: NewUsers = { fullName: faker.name.fullName(), type:...

Hello 👋 If like me you need the last `date-fns` version and `date-fns-tz`, there is a temporary solution. You need `patch-package` (https://www.npmjs.com/package/patch-package). Follow their instructions but in short: - add...

@giacomocerquone you saved my life

It's possible that you need some references on your schema to achieve many to many relations like here: https://orm.drizzle.team/docs/rqb#many-to-many

Like when you add userId: uuid("user_id").notNull() Add a reference to user table in order to be able to make a join userId: uuid("user_id").notNull().references(() => users.id)