keystonejs / keystone

The most powerful headless CMS for Node.js — built with GraphQL and React
https://keystonejs.com
MIT License
8.99k stars 1.13k forks source link

Hooks not fired on relation field changes #9051

Closed molotow11 closed 4 months ago

molotow11 commented 4 months ago

Hi, Guys!

I have the following relation:

User (single) -> (many) Article

When I am changing User's aritcles assignment, this is not fires Article hooks.

I am expecting that reference field update will fire the hooks and I can update some data based on this. Please let me know if this possible to fix.

dcousens commented 4 months ago

@molotow11 what operation would you expect to fire for an Article?

molotow11 commented 4 months ago

I expect that update operation should fire, because Article's userId field is actually updated