Changelog - 2026-11-06
An include of a name that is not a relation is a validation error
Bug FixIn one line. include: ['constructor'] found an inherited function where a relation was expected and failed later as an internal error. It is a 400 Relation NOT FOUND now.
What changed
- Own relations only. A relation name is looked up on the declared relations, not on the object's prototype.
constructor,toString,__proto__and similar names are not relations. - Malformed entries. A relation name that is not a non-empty string (
["zzz"],42) or an entry that isnullanswers400 Invalid include formatinstead of a TypeError (500). - Escaped echo. The not-found message writes the name through the same escaping the column messages use: one line, control characters as
\uXXXX.
Who is affected
Nobody needs to act. A request that used such a name was failing already, with a worse error.
Details
| File | Package |
|---|---|
src/relational/core/repositories/dialect/filter.ts | connectors |