Session: How to Refresh an Entity
To update an entity with the latest changes from the server, use the
refresh() method from
advanced session operations.
||Instance of an entity that will be refreshed
const employee = await session.load("employees/1");
// lastName changed to 'Shmoe'
Refreshing a transient entity (not attached) or an entity that was deleted server-side will result in an