From Prisma Model to Kysely Schema
Hey everyone, I'm using this package https://github.com/valtyr/prisma-kysely, the output of this Prisma Model is
so when I have Kysely code such as
6 Replies
businessType: businessType[0].id // gives error because it's not in the
schema.d.ts
fileUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
Might be relavant: https://github.com/valtyr/prisma-kysely/issues/12
GitHub
Support implicit many-to-many relations · Issue #12 · valtyr/prisma...
It seems Prisma creates a relation table to connect two tables, but prisma-kisely does not create a type for it. I am not sure how the relation table is generated, but it seems to have _{Tab1}On{Ta...
thank you guys. I think I'm gonna to switch my Prisma schema over to Kysely schema and use the Kysely-codegen package.
I really liked my setup of using the Prisma schema because it also allowed me to generate Zod schemas from it. does a package like this:https://github.com/chrishoermann/zod-prisma-typesone exist for Kysely - to - Zod schemas? I googled but no luck
Not that I know of
could be cool
Don't have the skills otherwise I would attempt, maybe one day