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: object-form where() is typed undefined for every field on a TypeScript-built contract #30513
What a user sees. With a contract built by the Mongo TypeScript builder and passed straight to mongo({ contract }) (no emitted contract.d.ts), every field of the object-form filter is typed undefined. where({ title: 'x' }) and where({ _id }) fail to compile with "Type 'string' is not assignable to type 'undefined'". The runtime handles the query fine. Users have to fall back to MongoFieldFilter expressions.
Reproduces on rc.12 and on main at d13613775f. MongoWhereFilter and the no-emit mongo({ contract }) path date from April 2026.
Likely fix. Derive MongoWhereFilter's field types from the builder's contract type the same way the emitted contract.d.ts path does; add a type test on a TS-built contract.
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…