Adham Sabry
Adham Sabry
Discord Thread: https://discord.com/channels/1214904142443839538/1238875455436881971
Will it affect the loaded groups? I have a where condition on those as well?
@B4nan, how can I limit populate from populating an entire collection? I want to just take 1 for example.
So, here is a conversion of your suggestion: ``` await this.repo.populate( user, ['pictures', 'profiles.links', 'profiles.themes', 'profiles.groups', 'settings'], // here, I want to get the last applied settings by the user...
Hello @B4nan , have you had a chance to see my comment above? Is there any chance I limit the populate for `settings`? I used to be able to do...
@B4nan , how can I use this? I checked https://github.com/mikro-orm/mikro-orm/commit/57f234bae7ecb212f19f85de78234280f6d35f3a#diff-0ff5eff74e69157ae82c4c9778d18af0f72c77d22f77770ae81c6e9dbe0ce690 and it's not clear on the usage? So, do I do this: ``` await users[0].groups.matching({ store: true, orderBy: { permissions:...
I managed to work it out: ``` await users[0].groups.matching({ store: true, orderBy: { permissions: { id: 'ASC', }, }, where: { permissions: { write: true, }, }, populate: ['permissions'], populateWhere:...
Thanks @B4nan , it doesn't also work for Collection, right? I am getting `core_1.wrap)(...).toObject` when I do this on result from `find`