New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Adding relations option to findTrees() #7974
Comments
I have a problem with my unit tests: They always pass, even if they should not.
This is the output on the console:
I also don't see any console.log() outputs. Does anyone have an idea? I did stick to the recommended testing template: https://github.com/TheProgrammer21/typeorm/blob/master/DEVELOPER.md#running-tests-locally |
I was able to aggregate the problem: The connections array is empty. Im now debugging.. |
You need to set up an ormconfig for it. See the example used by circleci |
Ah I see.. I didn't run all DBMS but they were not skipped in the ormconfig. Probably something that could be mentioned in the development guide. Thanks for the help! |
* feat: add relation option to tree queries Add possibility to load relations of tree entities Closes: #7974 #4564 * style: remove unused declaration remove unused declaration to satisfy linting. * Update tree-entities.md docs: rename variable for copy paste * Update FindOptionsUtils.ts style: remove prettified code * style: remove prettified code * style: remove prettified code * test: enable test for all drivers
Feature Description
Adding functionality to load relations in TreeRepositories.
The Problem
When loading a tree in TypeORM there is no possibility of loading relations of the tree entities.
The Solution
Adding a relations option to the findTrees() function like it already exists for find() or findOne() in non TreeRepositories.
Considered Alternatives
A workaround would be to manually write raw queries with JOINs and execute those.
Relevant Database Driver(s)
aurora-data-api
aurora-data-api-pg
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: