Hierarchy
- UpdateOperations
Methods
concat
inc
push
-
The method declares the operation of adding an app item at the end of an array field.
const rows = await Application.batch() .update() . set('users', (f, op) => op.push(user)) .all();
Type parameters
-
T: Type
Parameters
-
Rest ...items: T[]
Returns UpdateArrayOperation<T>
-
remove
-
The method declates the operation of deletion app items from an array field.
const rows = await Application.batch() .update() . set('users', (f, op) => op.remove(user)) .all();
Type parameters
-
T: Type
Parameters
-
Rest ...items: T[]
Returns UpdateArrayOperation<T>
-
Object with operations available for batch update