We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prismaSchemaFolder
I'm using the Preview-Feature prismaSchemaFolder to have multiple schema files in dictionary prisma/schema.
prisma/schema
However, when I run npx prisma generate, the output folder for the zod-files is created, but is empty.
npx prisma generate
schema.prisma
generator client { provider = "prisma-client-js" previewFeatures = ["prismaSchemaFolder"] } generator zod { provider = "prisma-zod-generator" output = "./generated-zod-schemas" isGenerateSelect = true isGenerateInclude = true } datasource db { provider = "postgresql" url = env("DATABASE_URL") } model User { id Int @id @default(autoincrement()) email String @unique name String? posts Post[] } model Post { id Int @id @default(autoincrement()) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt title String content String? published Boolean @default(false) viewCount Int @default(0) author User? @relation(fields: [authorId], references: [id]) authorId Int? likes BigInt }
generated-zod-schemas
I'd expect the zod-files to be created.
The exact same prisma.schema file works without previewFeature flag prismaSchemaFolder
prisma.schema
See above
prisma : 5.17.0 @prisma/client : 5.17.0 Computed binaryTarget : darwin-arm64 Operating System : darwin Architecture : arm64 Node.js : v22.0.0 Query Engine (Node-API) : libquery-engine 393aa359c9ad4a4bb28630fb5613f9c281cde053 (at node_modules/prisma/node_modules/@prisma/engines/libquery_engine-darwin-arm64.dylib.node) Schema Engine : schema-engine-cli 393aa359c9ad4a4bb28630fb5613f9c281cde053 (at node_modules/prisma/node_modules/@prisma/engines/schema-engine-darwin-arm64) Schema Wasm : @prisma/prisma-schema-wasm 5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053 Default Engines Hash : 393aa359c9ad4a4bb28630fb5613f9c281cde053 Studio : 0.502.0 Preview Features : prismaSchemaFolder
The text was updated successfully, but these errors were encountered:
it seems like any previewFeature has the same behavior; Here I have: previewFeatures = ["relationJoins"]
previewFeatures = ["relationJoins"]
Sorry, something went wrong.
No branches or pull requests
Bug description
I'm using the Preview-Feature
prismaSchemaFolder
to have multiple schema files in dictionaryprisma/schema
.However, when I run
npx prisma generate
, the output folder for the zod-files is created, but is empty.How to reproduce
prisma/schema
schema.prisma
file with following content:npx prisma generate
generated-zod-schemas
was created but is emptyExpected behavior
I'd expect the zod-files to be created.
The exact same
prisma.schema
file works without previewFeature flagprismaSchemaFolder
Prisma information
See above
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: