Skip to content

InsertChildMutation

Insert a child

Extends

Constructors

new InsertChildMutation()

new InsertChildMutation(parent, obj, position?): InsertChildMutation

Parameters

parent: Obj

obj: Obj

position?: number

Returns

InsertChildMutation

Overrides

Mutation.constructor

Source

core/transaction.ts:165

Properties

obj

obj: Obj

Source

core/transaction.ts:162


parent

parent: Obj

Source

core/transaction.ts:161


position

position: number

Source

core/transaction.ts:163


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


toJSON()

toJSON(): object

Returns

object

obj

obj: Obj

op

op: string

parentId

parentId: string

position

position: number

Overrides

Mutation.toJSON

Source

core/transaction.ts:194


unapply()

unapply(store): void

Parameters

store: Store

Returns

void

Overrides

Mutation.unapply

Source

core/transaction.ts:185