We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am getting that error on GET method with 3 join levels.
Example: 2 join level works: http://localhost:3000/entity-a?join=entityB&join=entityB.entityC
3 join level NOT works: http://localhost:3000/entity-a?join=entityB&join=entityB.entityC&join=entityB.entityC.entityD
Occurs this error:
My controller:
Repository with bug reproduction https://github.com/GabrielArsenio/nest-crud-bug-join
The text was updated successfully, but these errors were encountered:
try adding aliases for these relations
@Crud({ model: { type: EntityA }, query: { join: { entityB: { alias: "entityB" }, 'entityB.entityC': { alias: "entityC" }, 'entityB.entityC.entityD': { alias: "entityD" }, }, }, })
Sorry, something went wrong.
try adding aliases for these relations @Crud({ model: { type: EntityA }, query: { join: { entityB: { alias: "entityB" }, 'entityB.entityC': { alias: "entityC" }, 'entityB.entityC.entityD': { alias: "entityD" }, }, }, })
@danyalutsevich thank you so much, this worked, I really forget how many errors can be solved using aliases.
No branches or pull requests
I am getting that error on GET method with 3 join levels.
Example:
2 join level works: http://localhost:3000/entity-a?join=entityB&join=entityB.entityC
3 join level NOT works: http://localhost:3000/entity-a?join=entityB&join=entityB.entityC&join=entityB.entityC.entityD
Occurs this error:
My controller:
Repository with bug reproduction
https://github.com/GabrielArsenio/nest-crud-bug-join
The text was updated successfully, but these errors were encountered: