$getKey()
Usage
class User extends Model { static entity = 'users' @Attr('') declare id: number @Str('') declare name: string}const user = new User({ id: 1, name: 'John Doe' })user.$getKey()// -> 1
Typescript Declarations
function $getKey(record?: Element): string | number | (string | number)[] | null
Table of Contents