-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapping associations with no join included #11
Comments
probably create custom property for that using |
@lfreneda actually disregard my comment above. 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:
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: