Closed shaoner closed 9 years ago
Purpose is to set a field using an SQL function:
Syntax:
User.update({ age: [ '?? + ?', 'age', 1 ] }); // UPDATE user SET `age` = `age` + 1
Aliases:
User.update({ age: ziti.$inc('age') }); // UPDATE user SET `age` = `age` + 1
or
User.update({ age: ziti.$inc }); // UPDATE user SET `age` = `age` + 1
Chain:
User.update({ age: ziti.$inc(ziti.$dec) }); // UPDATE user SET `age` = `age` - 1 + 1
See cca276e2145182eb3bf31e02c96f75e4a68a145d
Purpose is to set a field using an SQL function:
Syntax:
Aliases:
or
Chain: