You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lfreneda actually disregard my comment above.
The most likely solution for this would be to use player_name as idProperty of playerMap. There would be no problem with doing that if player_name is a unique column and assuming that this is a one-to-one relationship since you are asking about associations, not collections.
resultMaps=[{mapId: 'teamMap',idProperty: 'id',properties: ['name'],associations: [// use collections for one-to-many{name: 'players',mapId: 'playerMap',columnPrefix: 'player_'}]},{mapId: 'playerMap',idProperty: ['name']}];
However, with regards to the PR title:
Mapping associations with no join included
I think that that is not the scope of this library. Associations are basically the way to map relationships in result sets. join-js is agnostic of your data relationships that is why you are the one to teach it how to read your data.
What If a want to group some properties on a nested object.
Here's a sample:
Is this possible?
The text was updated successfully, but these errors were encountered: