Support Topics Documentation Slack YouTube Blog

Nested object save


(Ganesh Kumar) #1

Simple object is saving without any issues for me. How to save the nested object into backendless without creating child object. My object structure is
{
custName:string,
custAge:number,
Unit:{
unitId:number,
unitname:string
},
Books:[{
Bookname:string
}]
}


(Mark Piller) #2

You need to save each object individually, then “link” them using the setRelation or addRelation API calls.