简体   繁体   中英

How to get an specific relation in a Parse.com table/class (Android)

Been trying to figure this out with no avail, let's say each row in a table/class has several relations, how can I reference an specific relation from that row?... so I can do something with the third relation from row 1, for example.

Thanks.

You would just use something like this:

ParseRelation relation = ParseObject.getRelation("relationName");

ParseQuery query = relation.getQuery();

Then from there you can filter out your query results like:

query.whereEqualTo("Name", "Luchito");

And if I'm understanding your question correctly, you could then just take the list returned from query and compare it against another relation using whereEqualTo or whereContainedIn.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM