0
특정 개체를 가져 오기 위해 쿼리를 작성하려고합니다. 것은 .. 배열과 일치하는 개체를 가져 오는 쿼리를 만드는 방법을 모르겠습니다. 사용자는 여러 그룹의 구성원이 될 수 있으므로이 그룹의 이름은 User.groups에 배열로 저장됩니다. 현재 사용자가 구성원 인 클래스 '그룹'의 모든 개체를 가져 오려고합니다. 나는 이것을 생각해 냈다 :배열 값에 대한 구문 분석
ParseQuery query1 = ParseQuery.getQuery("_User"); //selects User Class
query1.whereEqualTo("username", current_user.toString()); //selects current user
query1.include("groups"); //include 'groups' of type array with names of the groups that the user is a member of
ParseQuery query2 = ParseQuery.getQuery("Group"); //select Groups Class
query2.whereContainedIn("group_name", ?); //<-- Get objects where group_name matches a value in the User.groups
코드의 마지막 줄은 분명히 그것을하는 방법이 아니다. 이미 Parse Guide를 보았습니다! 도움을 많이 받으실 수 있습니다!