I have a one to many relationship between user and userTitle where the title of the user is accessed using the relation like this: user.Title;
Comparing the new and old records is not working because although the title of the user has definitely changed record.Title._key is in fact equal to oldRecord.Title._key
inside onBeforeSave user model. However checking the foreign key record.title_fk and oldRecord.title_fk
produces an expected result ( that is they are different ).
What to do if I want to track history of records?