GIVEN have many to many relation AND have data for one entity but not have relation WHEN get data with leftJoinandSelect THEN return one object with null properties.
GIVEN have many to many relation AND have data for one entity but not have relation WHEN get data with leftJoinandSelect THEN return empty array.
-
docker-compose (and make optional)
or
-
npm and postgresql
make install
make migrate/run
make dev
docker-compose run --rm issue_typeorm_back npm install
docker-compose run --rm issue_typeorm_back npm run migrate:run
docker-compose run --rm --service-ports issue_typeorm_back npm run dev
Change .env
file to set your database connection
npm install
npm run migrate:run
npm run dev
Open a rest client app and send request to http://localhost:8000/
(You can install rest client extension on vscode, go to restClient folder and send request to http://localhost:8000/)