Mission: RELATIONS MASTER
Task: ** Set Relation with objects API**
Database API > Relations API (Set/Add) > * Set Relation with objects
Example at bottom of the page has wrong (probably previous SDK verson) named parameter:
“children:” should be “childrenObjectIds:”
Map parentObject = // parentObject retrieval is out of scope in this example
Map childObject = // childObject retrieval is out of scope in this example
Backendless.data.of(“Person”).setRelation(parentObject[‘objectId’], “address”,
children: [childObject[‘objectId’]]).then((response) {
// relation has been set
});