我想跟踪云中的一些后端更改。
我的 before_save 的日志告诉我这样的事情:
before_save triggered for Elements for user oKwM9mvEUn:
Input: {
"original":
{"elements":[
{"__type":"Pointer","className":"Element","objectId":"VzeuG3Z5N6"},
{"__type":"Pointer","className":"Element","objectId":"APkHJpgcms"},
{"__type":"Pointer","className":"Element","objectId":"xHG1jg8fny"}
]},
"update":
{"elements":[
{"__type":"Pointer","className":"Element","objectId":"VzeuG3Z5N6"},
{"__type":"Pointer","className":"Element","objectId":"xHG1jg8fny"}
]}
}
Result: Update changed to
{"elements":[
{"__type":"Pointer","className":"Element","objectId":"VzeuG3Z5N6"},
{"__type":"Pointer","className":"Element","objectId":"xHG1jg8fny"}
]}
脏键告诉我“元素”已更改,但我想知道究竟添加(或删除)了什么,因为我只想跟踪更改...
是否有可能访问那些“更新”值?还是我必须自己在其他财产中跟踪它?
感谢您的提示!