Repository navigation
Do not automatically add primary key to attributes (or include[].attributes) if raw is set - #4029
Conversation
…ibutes) if raw is set
|
Thank you for this PR. The only issue i have is passing |
There was a problem hiding this comment.
Please remove the console.log
|
Both those comments are now fixed. Build has failed, but that looks to be for other unrelated reasons (issues with transaction serialization), which I suspect is something intermittent, but I don't have permission to retrigger the build. I can't see any way these couple of tiny markups could've caused that. |
Do not automatically add primary key to attributes (or include[].attributes) if raw is set
|
Thanks for the contribution :) |
|
Sorry for opening this again. I had three tables invoice, item, invoice_item(which had a quantity column) But I had the same error described here (https://www.softwire.com/insights/fixing-aggregation-over-relationships-with-sequelize/) and it was the closest I came to a solution but couldn't figure it out. could someone help? |
This bring in the changes discussed in #3920, disabling the automatic addition of the primary key field to the attributes returned by a query, and thereby allowing aggregation in more cases, when raw is set to true.
This includes the changes and tests. Is there any documentation anywhere that needs to be updated in line with this?