-
Hi, How to reproduceI just created a fresh new app with
Basically, they're just 2 entities in a 1-to-1 optional relationship and with the same
You will read:
Note how Now mutate the trailer to link it and to unlink to and from the truck. You will read:
and that’s wonderful. Now do the same, but from the truck side, by navigating the Admin UI to the truck, or by the api explorer (with
Unexpected behaviorI found this an unexpected behavior. I expected that Keystone invokes the Trailer hook rather than the Truck hook:
Currently my node.js is v20.18.0 and my package.json contains:
I think this bug could be related to #7301. Tnx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry, I missed the crucial part where Re-opened the issue as #9433 (GitHub won't let me re-open the previous issue after moving this) |
Beta Was this translation helpful? Give feedback.
If you callupdateTruck
, theTruck.hooks.afterOperation
hook will be called.NoTrailer
hooks will be called, as no operation transpires for theTrailer
list.Sorry, I missed the crucial part where
db.foreignKey: true
is set.This mismatched behaviour of the hooks is something we should look into.
Re-opened the issue as #9433 (GitHub won't let me re-open the previous issue after moving this)