We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b1dab5 commit 5e3e220Copy full SHA for 5e3e220
packages/schema/src/plugins/enhancer/enhance/index.ts
@@ -1,4 +1,3 @@
1
-import { ReadonlyDeep } from '@prisma/generator-helper';
2
import { DELEGATE_AUX_RELATION_PREFIX } from '@zenstackhq/runtime';
3
import {
4
PluginError,
@@ -422,7 +421,7 @@ export type Enhanced<Client> =
422
421
return dmmf;
423
}
424
425
- private shouldBeOptional(field: ReadonlyDeep<DMMF.SchemaArg>, dataModel: DataModel) {
+ private shouldBeOptional(field: DMMF.SchemaArg, dataModel: DataModel) {
426
const dmField = dataModel.fields.find((f) => f.name === field.name);
427
if (!dmField) {
428
return false;
0 commit comments