narrow down String type using prisma client's extension?
can I explain to prisma client and typescript that this particular field needs to be a string union?
2 Replies
ofc there are no unions on the DB level, I just want editor-level unions
Prisma does not have built-in support for defining string union types directly in the schema. You could consider using an enum