有以下课程:
countryOffer:
-countryPointer
-offerPointer
Offer:
-objectId
-Title
-BusinessPointer
我想从countryOffer中选择特定国家/地区的所有优惠,然后从query1中的结果中查询优惠类。
使用Android。
编辑:
到目前为止我尝试了什么:
ParseQuery<ParseObject> query1 = ParseQuery.getQuery("countryOffer");
query1.include("countryPointer");
query1.include("offerPointer");
query1.whereEqualTo("countryPointer", country) //country is an object
ParseQuery<ParseObject> query2 = ParseQuery.getQuery("Offer");
query2.whereMatchesKeyInQuery("objectId", "offerPointer", query1);