Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ACS Atomic Increment Operator $inc Not Working ??

$
0
0

Hi,

I am trying to use the '$inc' atomic increment operation using the ACS '$inc', but this does not seems to work.

I used 'Update' method with the following code for custom fields 'counter':

{
    'counter': {"$inc":12}
}
but the result is "counter" value was changed to 12 instead of increment by x+12.

Anyone had facing the same problem? Appreciate any advice on this matter.

Thank you.

Note: I am using Ti.SDK 3.4.1GA with Android SDK 4.4.2 device.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>