I have a following error during compilation when I trying to use types.
The types of '_type.update' are incompatible between these types.
Type '(userUpdateWithoutProfileInput | userUncheckedUpdateWithoutProfileInput) & (userUpdateWithoutProfileInput | userUncheckedUpdateWithoutProfileInput | undefined)' is not assignable to type '(Without<userUpdateWithoutProfileInput, userUncheckedUpdateWithoutProfileInput> & userUncheckedUpdateWithoutProfileInput) | (Without<...> & userUpdateWithoutProfileInput)'.
Type 'userUpdateWithoutProfileInput & userUncheckedUpdateWithoutProfileInput' is not assignable to type '(Without<userUpdateWithoutProfileInput, userUncheckedUpdateWithoutProfileInput> & userUncheckedUpdateWithoutProfileInput) | (Without<...> & userUpdateWithoutProfileInput)'.
Type 'userUpdateWithoutProfileInput & userUncheckedUpdateWithoutProfileInput' is not assignable to type 'Without<userUncheckedUpdateWithoutProfileInput, userUpdateWithoutProfileInput> & userUpdateWithoutProfileInput'.
Type 'userUpdateWithoutProfileInput & userUncheckedUpdateWithoutProfileInput' is not assignable to type 'Without<userUncheckedUpdateWithoutProfileInput, userUpdateWithoutProfileInput>'.
Types of property 'ipdId' are incompatible.
Type 'string | NullableStringFieldUpdateOperationsInput | null | undefined' is not assignable to type 'undefined'.
Type 'null' is not assignable to type 'undefined'.ts(2322)
The error happens with this:
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
How to reproduce
Generate with mentioned prisma version and see upsert operation result.
UPD: another case is multiple unique keys in the model - the schema is generated incorrectly. It breaks the compilation.
Bug description
I have a following error during compilation when I trying to use types.
The error happens with this:
How to reproduce
Generate with mentioned prisma version and see upsert operation result.
UPD: another case is multiple unique keys in the model - the schema is generated incorrectly. It breaks the compilation.
Expected behavior
No response
Prisma information
Unable to provide
Environment & setup
Prisma Version