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
{{ message }}
Repository navigation
Mongo ORM: update accessor has no inc/mul on a nullable number field #30515
What a user sees. On a nullable number field (Int32?, Double?), the update accessor offers no inc or mul. The accessor's conditional type distributes over number | null, so the numeric operations drop out. $inc works on a missing field at runtime; the server refuses $inc on a stored null.
Dates from ef88f94a04 (2026-04-14). The same accessor's handling of Int64 fields (which are bigint) is being fixed separately.
Likely fix. Compute the numeric operations from the non-null part of the field's type; add a type test.
Found while fixing manual-QA findings for the Mongo defaults, codecs and Prisma 6 source project.
Activity
fix(mongo): every value the ORM writes, reads or filters on goes thro…
fix(mongo-orm): inc and mul are offered on nullable number fields (pr…