diff --git a/packages/runtime/src/client/crud-types.ts b/packages/runtime/src/client/crud-types.ts index 85cf3b56..91011428 100644 --- a/packages/runtime/src/client/crud-types.ts +++ b/packages/runtime/src/client/crud-types.ts @@ -427,7 +427,7 @@ export type WhereUniqueInput; export type OmitInput> = { - [Key in NonRelationFields]?: true; + [Key in NonRelationFields]?: boolean; }; export type SelectIncludeOmit, AllowCount extends boolean> = { @@ -442,7 +442,7 @@ export type SelectInput< AllowCount extends boolean = true, AllowRelation extends boolean = true, > = { - [Key in NonRelationFields]?: true; + [Key in NonRelationFields]?: boolean; } & (AllowRelation extends true ? IncludeInput : {}) & // relation fields // relation count (AllowCount extends true @@ -453,11 +453,11 @@ export type SelectInput< : {}); type SelectCount> = - | true + | boolean | { select: { - [Key in RelationFields as FieldIsArray extends true ? Key : never]: - | true + [Key in RelationFields as FieldIsArray extends true ? Key : never]?: + | boolean | { where: WhereInput, false>; }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7463216..42a9470e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,7 +22,7 @@ catalogs: specifier: 3.5.0 version: 3.5.0 prisma: - specifier: ^6.14.0 + specifier: ^6.10.0 version: 6.14.0 tmp: specifier: ^0.2.3 @@ -31,7 +31,7 @@ catalogs: specifier: ^5.7.1 version: 5.7.1 typescript: - specifier: ^5.0.0 + specifier: ^5.8.0 version: 5.8.3 zod: specifier: ^4.0.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4b745954..80826124 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -5,11 +5,11 @@ packages: catalog: kysely: ^0.27.6 zod: ^4.0.0 - prisma: ^6.14.0 + prisma: ^6.10.0 langium: 3.5.0 langium-cli: 3.5.0 ts-pattern: ^5.7.1 - typescript: ^5.0.0 + typescript: ^5.8.0 '@types/node': ^20.17.24 tmp: ^0.2.3 '@types/tmp': ^0.2.6