Facing an Issue with fields under populate #110
Unanswered
amitkTechno
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Please help me regarding this @B4nan |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am facing a new issue which is related to mikro-orm/mikro-orm#3012
Here I have 3 tables relationship
1. User entity
2. Shop Entity
3. Products Entity
await this.shopRepository.findOne({ id: 1 },{ fields: ['*', 'createdBy.name', 'products.owner.email'], populate: ['createdBy', 'products.owner'] })
Result
Expected behavior
The result should not contain owner name inside products owner object (which owner id is 1).
Versions
Thanks @B4nan
Beta Was this translation helpful? Give feedback.
All reactions