Session: How to Ignore Entity Changes
In order to mark an entity as one that should be ignored for change tracking purposes, use the
ignoreChangesFor() method from the
advanced session operations.
evict() method, performing another
load() of that entity won't create a call to the server.
The entity will still take part in the session, but will be ignored for
||Instance of entity for which changes will be ignored.
const product = await session.load("products/1-A");
product.unitsInStock++; // this will be ignored by saveChanges()