Is there a way to find what changes took place in the beforeUpdate/afterUpdate lifecycle hook?

Is there a way to find what changes took place in the beforeUpdate/afterUpdate lifecycle hook?

This topic has been created from a Discord post (1237695416011849842) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

The afterUpdate hook will get both the data sent in the update request and the result which you could compare.

  afterUpdate: async (event) => {
    let dataSentInUpdateRequest = event.params.data;
    let resultOfUpdateOperation = event.result;
  },

Docs: Models | Strapi Documentation