Thursday, 18 May 2017

Strongloop append object

I have MySQL table with column type JSON

{
"type": "1",
"local": "1",
"maker": "1"
}

I want append the the JSON array

[{
"type": "1",
"local": "1",
"maker": "1"
},
{
"type": "2",
"local": "2",
"maker": "2"
}]

How i use Strongloop to append that ? I used the method PUT/ID and it replaced my array like

{
"type": "2",
"local": "2",
"maker": "2"
}

I dont want to GET/ID my array and merge the new and send de PUT.

Is possible to apeend ?



via Rafael

No comments:

Post a Comment