Documentation / @warp-drive/core / reactive / fromIdentity
Variable: fromIdentity
ts
const fromIdentity: FromIdentityDerivation;
Defined in: warp-drive-packages/core/src/reactive/-private/schema.ts:364
A derivation that computes its value from the record's identity.
It can be used via a derived field definition like:
ts
{
kind: 'derived',
name: 'id',
type: '@identity',
options: { key: 'id' }
}
Valid keys are 'id'
, 'lid'
, 'type'
, and '^'
.
^
returns the entire identifier object.