Skip to content

AssignRefMutation

Assign a ref to an object field

Extends

Constructors

new AssignRefMutation()

new AssignRefMutation(obj, field, value): AssignRefMutation

Parameters

obj: Obj

field: string

value: null | Obj

Returns

AssignRefMutation

Overrides

Mutation.constructor

Source

core/transaction.ts:128

Properties

field

field: string

Source

core/transaction.ts:124


newValue

newValue: null | Obj

Source

core/transaction.ts:125


obj

obj: Obj

Source

core/transaction.ts:123


oldValue

oldValue: Obj

Source

core/transaction.ts:126


type

type: string

Inherited from

Mutation.type

Source

core/transaction.ts:18

Methods

apply()

apply(store): void

Parameters

store: Store

Returns

void

Overrides

Mutation.apply

Source

core/transaction.ts:136


toJSON()

toJSON(): object

Returns

object

field

field: string

newValue

newValue: null | Obj

objId

objId: string

oldValue

oldValue: Obj

op

op: string

Overrides

Mutation.toJSON

Source

core/transaction.ts:146


unapply()

unapply(store): void

Parameters

store: Store

Returns

void

Overrides

Mutation.unapply

Source

core/transaction.ts:141