unwrapEntity
unwrapEntity turns an entity into a plain object by unwrapping NewType values and exposing its metadata.
Interactive example
Syntax
Classic signature
typescript
function unwrapEntity(
entity: Entity
): UnwrapEntity<Entity>Parameters
entity: The entity to unwrap.
Return value
A plain object containing raw properties, plus _entityName and _flags when present.
Utility type
typescript
type UnwrappedUser = C.UnwrapEntity<User>;