I am currently working with parse in react native. I have a query that fetches data from a collection which has a property with relation to other collection. Now i want to fetch all these relational data in a single call rather then calling each relation separately.
Currently i get one collection then get its relational data separately in a new call.
const data1 = await result
.get("data1")
.query()
.descending("createdAt")
.find();
const data2 = data1.relation("test");
const data3 = await data2.query().find();
Now i want to fetch the relational data along with the data1 in the very first call.
I would like to know is it even possible in parse. If yes how? I have been trying to fetch relational data all day but no success. Any help would really be appreciated.