Increment Numeric Data
Learn how to increment numeric data in your WorqDB Document
You can increment or decrement a numeric field value as shown in the following example. An increment operation increases or decreases the current value of a field by the given amount.
To increment a numeric field value, use a POSITIVE
number. To decrement a numeric field value, use a NEGATIVE
number.
The Increment operation is only available for numeric fields and will only work if the Field has either been declared during a
Add
operation or has been updated with a Update
operation. If the Field doesn’t exist, the Increment operation will fail.Increment Numeric Data
Decrement Numeric Data
Try it out in the API Reference
View API Reference to Implement
Visit the API Reference to learn how to Increment Numeric Data in Documents from Collections. Get access to Sample Code, API Endpoints and run it right within the browser to test it out.