You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Expected behavior
No response
Prisma information
Unable to provide
Environment & setup
OS:
Database:
Node.js version:
Mac, Postgres, latest Node 18
Prisma Version
5.7.0
The text was updated successfully, but these errors were encountered:
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
Mac, Postgres, latest Node 18
Prisma Version
The text was updated successfully, but these errors were encountered: