Replies: 2 comments 9 replies
-
Why do you set |
Beta Was this translation helpful? Give feedback.
4 replies
-
Can you make this syntax also available with em.populate. For example: const city = await this.em.find(City, { id: 1 } });
await this.em.populate(city, ["schools"], { fields: ["schools.name"])
// If I use this now, it will ignore all other fields of City,
// I can solve it by { fields: ["*", "schools.name"] } But I'm like this syntax instead of { fields: ["", "schools.name"] } which I use before, because [""] will also get lazy property. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have entities City and School, that are OneToMany relationship.
It causes maybe due to new feature of populate: ["*"] on v6. I just want to verify it then I can refactor my code. Thank you so much!
MikroORM: 6.0.4
NodeJs: 20
Beta Was this translation helpful? Give feedback.
All reactions