Skip to content

AssignMutation

Assign a value to an object field

Extends

Constructors

new AssignMutation()

new AssignMutation(obj, field, value): AssignMutation

Parameters

obj: Obj

field: string

value: any

Returns

AssignMutation

Overrides

Mutation.constructor

Source

core/transaction.ts:90

Properties

field

field: string

Source

core/transaction.ts:86


newValue

newValue: any

Source

core/transaction.ts:87


obj

obj: Obj

Source

core/transaction.ts:85


oldValue

oldValue: any

Source

core/transaction.ts:88


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:98


toJSON()

toJSON(): object

Returns

object

field

field: string

newValue

newValue: any

objId

objId: string

oldValue

oldValue: any

op

op: string

Overrides

Mutation.toJSON

Source

core/transaction.ts:108


unapply()

unapply(store): void

Parameters

store: Store

Returns

void

Overrides

Mutation.unapply

Source

core/transaction.ts:103