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
Given a Prisma definition with an 'Unsupported' field, like this
model Feature { /// @Validator.IsUUID() /// @HideField({ match: 'Feature@(Create|Update)*Input' }) id String @id @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid geometry Unsupported("geometry(Polygon, 4326)") @map("geometry") /// @Validator.IsString() name String }
All of the create and update input files will not be generated.
If the Unsupported field is commented out, the create and update files are created.
I would expect adding the HideField annotation to fix the problem:
model Feature { /// @Validator.IsUUID() /// @HideField({ match: 'Feature@(Create|Update)*Input' }) id String @id @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid /// @HideField({ input: true, output: true }) geometry Unsupported("geometry(Polygon, 4326)") @map("geometry") /// @Validator.IsString() name String }
However, the create and update input types are still not generated.
It would be great to either ignore Unsupported fields by default during generation or respect the @HideField annotation for them.
The text was updated successfully, but these errors were encountered:
Any update on this?
Sorry, something went wrong.
No branches or pull requests
Given a Prisma definition with an 'Unsupported' field, like this
All of the create and update input files will not be generated.
If the Unsupported field is commented out, the create and update files are created.
I would expect adding the HideField annotation to fix the problem:
However, the create and update input types are still not generated.
It would be great to either ignore Unsupported fields by default during generation or respect the @HideField annotation for them.
The text was updated successfully, but these errors were encountered: