Skip to content

breeze-client / IEntityByKeyResult

Interface: IEntityByKeyResult ​

Defined in: src/manager/entity-manager.ts:2183

What an EntityManager.fetchEntityByKey call resolves with.

Extended by ​

Properties ​

entity ​

entity: Entity | null

Defined in: src/manager/entity-manager.ts:2190

The entity, or null if there is none.

null rather than undefined, because that is what absence means everywhere else in Breeze: a scalar navigation property with nothing cached is null, a nullable data property is null, and EntityManager.getEntityByKey returns null. Before 3.0 this one property was the exception. See UPGRADE.md.


entityKey ​

entityKey: EntityKey

Defined in: src/manager/entity-manager.ts:2192

The key that was looked up.


fromCache ​

fromCache: boolean

Defined in: src/manager/entity-manager.ts:2197

True if the answer came from the local cache, which is only checked when checkLocalCacheFirst is true; false if the server was queried. It can be true with a null entity: the cached entity is Deleted, and the manager's queryOptions exclude deleted entities and do not use MergeStrategy.OverwriteChanges.

Released under the MIT License.