-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
fix(#138): Load embedded entities #267
Conversation
@frco9 thanks! |
Yep I'm just finishing them now, it will be ready in ~5min ;) |
@zMotivat0r here they are, tell me if you want me to change something ! |
LGTM. Let's @Diluka to take a look too. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@zMotivat0r do you think you'll merge and release that soon ? |
Hi! Many thanks @frco9 |
@zMotivat0r where the route entity has an embedded entity: there the embedded entity will still not be loaded |
@jopdorp could you please show me your entities, I didn't get it :( |
@zMotivat0r Page: import { @entity() @PrimaryGeneratedColumn() constructor(from: Page, to: Page) { AbTest: import {Column } from 'typeorm'; export class AbTest { page controller: import { Controller } from '@nestjs/common'; @crud({ @ApiUseTags('Page') |
@zMotivat0r so i would expect the route as join on in page request to contain the embedded data the request and responses: this doesn't load the embedded utm and abTest { this loads the embedded utm and abTest |
@zMotivat0r does it make any sense now? |
This PR fixes #138
Embedded entities were not loaded as the complete path to them was not used in the select.