I am using javascript and I would like to know how to retrieve data of parent from child? Is there any exmaple to do so? eg.example code
Is there anybody can help ?
Hi.
Try to investigate this:
https://backendless.com/documentation/data/js/data_search_and_query.htm
https://backendless.com/documentation/data/js/data_relations_retrieve.htm
On the second link you can find examples about retrieve object by it relations.
seems no a specific case for retrieving data from child to parent?
Hi Karlex,
If you know child’s objectId, you can run a query (a find operation) on the parent table with the following whereClause:
relationName.objectId = 'child-objectId'
This will retrieve the parent object of the specified child.
Regards,
Mark