ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
I was expecting switching from ES2020 to ESNext to have no impact
Actual Behavior
I am noticing that relations that are not loaded and fields that are not part of select (and are not queried - i checked the query). When the transformer applies the loaded data to an entity - it adds the extra fields unnecessarily. I am only switching the target version in my tsconfig.
Issue description
esnext compatibility
Expected Behavior
I was expecting switching from ES2020 to ESNext to have no impact
Actual Behavior
I am noticing that relations that are not loaded and fields that are not part of select (and are not queried - i checked the query). When the transformer applies the loaded data to an entity - it adds the extra fields unnecessarily. I am only switching the target version in my tsconfig.
Steps to reproduce
"typeorm": "^0.3.20", "sqlite3": "^5.0.2", "ts-node": "^10.8.0",
My Environment
Additional Context
No response
Relevant Database Driver(s)
Are you willing to resolve this issue by submitting a Pull Request?
No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.