apply

Apply a new state to an entity.

Example

const patch = {
  score: 110,
  lvl: 10,
  powerUpStatus: 'enabled',
};
yield entityAPI.apply({patch});