I have parse.com working with Corona. Has anyone used any of the commands working with arrays?
I can add an Array by using
local testArrayData = {[“ArrayKey”] ={ 4,8,12 }}
now I’m trying append to this, I’ve tried many combinations of below, always receiving internal error from Parse
local appendArrayData = {[“ArrayKey”] = {["__op"] = “Add”,[“ArrayKey”] = {64,65} } }
I’m using both in a function similar to below, where objectClass and objectId and data are being passed correctly
headers[“Content-Type”] = “application/json”
params.body = json.encode ( data )
request = “updateObj”
network.request( baseUrl … objectClass … “/” … objectID, “PUT”, networkListener, params)
The CURL example in the docs is confusing, as it mentions two Keynames, object and skills.
I have the Increment function working on a variable using the __op command so I should know what I’m doing [import]uid: 137150 topic_id: 36977 reply_id: 336977[/import]