MCPcopy Index your code
hub / github.com/parse-community/parse-server / runIncrement

Function runIncrement

spec/ParseAPI.spec.js:1505–1517  ·  view source on GitHub ↗
(amount)

Source from the content-addressed store, hash-verified

1503 const object = new Parse.Object('AnObject');
1504
1505 function runIncrement(amount) {
1506 const options = Object.assign({}, requestOptions, {
1507 body: {
1508 key: {
1509 __op: 'Increment',
1510 amount: amount,
1511 },
1512 },
1513 url: 'http://localhost:8378/1/classes/AnObject/' + object.id,
1514 method: 'PUT',
1515 });
1516 return request(options).then(res => res.data);
1517 }
1518
1519 object
1520 .save()

Callers 1

ParseAPI.spec.jsFile · 0.85

Calls 1

requestFunction · 0.50

Tested by

no test coverage detected