question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can limit releation table fields in findoption?

See original GitHub issue

Issue 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:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
samisamsamcommented, Jul 3, 2018

I have the same issue and update typescript didn’t work for me

1reaction
pleerockcommented, Jun 5, 2018

you need to update typescript version to > 2.8

checkout examples here.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found