Can limit releation table fields in findoption?
See original GitHub issueIssue type:
[* ] question [ ] bug report [ ] feature request [ ] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[* ] mysql
/ mariadb
[ ] oracle
[ ] postgres
[ ] sqlite
[ ] sqljs
[ ] react-native
TypeORM version:
[ ] latest
[ ] @next
[* ] 0.x.x
(or put your version here)
Steps to reproduce or a small repository showing the problem:
Can i limit releation table fields in findoption?like:
let rst = await getRepository(BalanceBill).findAndCount({
select['*','account.name'],
relations:["account"]
});
except sql
select bill.*,account.name from bill,account where bill.faccount=account.id
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Find Options - typeorm - GitBook
If you are using typeorm with MSSQL, and want to use take or limit , you need to use order as well or...
Read more >TypeORM - Amazing ORM for TypeScript and JavaScript (ES7 ...
TypeORM is an ORM that can run in NodeJS, Browser, Cordova, PhoneGap, Ionic, ... We generated a database table with columns, but there...
Read more >Correct way to maintain a One to many relation with fixed ...
I am modeling a common one to many relation between an Authors table and a Books table. By convention, an Author can have...
Read more >db.collection.find() — MongoDB Manual
MongoDB enforces additional restrictions with regards to projections. ... For fields in an embedded documents, you can specify the field using either:.
Read more >How to use table relationships - Tables Help Center
Relationship filters. You can restrict what rows can be selected in a Lookup column, or filter which rows are summarized in a Summary...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same issue and update typescript didn’t work for me
you need to update typescript version to > 2.8
checkout examples here.