2014-02-05 1 views
0

나는 티타늄 appcelerator를 사용하여 안드로이드 애플 리케이션에서 일하고 있습니다. 이제 시도하겠습니다. ACS REVIEWS .. 전체 DB 결과를 얻고 있습니다. ID별로 필터링해야합니다. 이를 위해 나는 그것을 ..하지만 조건이 작동하지 않습니다 ..ACS 검토 조건 실패

내 JSON을 넣어 시도

{ 
    "id": "52ea3eba08a3e5704b330c2a2a", 
    "rating": 3, 
    "created_at": "2014-01-30T11:59:54+0000", 
    "updated_at": "2014-01-30T11:59:54+0000", 
    "user": { 
     "id": "52e5f3881356b440b4b09c805", 
     "created_at": "2014-01-27T05:50:00+0000", 
     "updated_at": "2014-01-29T04:29:49+0000", 
     "external_accounts": [ 

     ], 
     "confirmed_at": "2014-01-27T05:50:00+0000", 
     "username": "Gk", 
     "role": "j", 
     "admin": "false", 
     "custom_fields": { 
     "phone": "91959454651", 
     "usertype": "0", 
     "status": "1", 
     "ios_deviceid": "", 
     "country_code": "IN", 
     "verify_code": "4574", 
     "verified": "1", 
     "contact_sms": "1", 
     "contact_message": "1", 
     "contact_email": "1", 
     "contact_phone": "0", 
     "android_gcmid": "APA91bE0mcScNlXbCENZ2D_9jylgwdwOJ6vYTqnI_Kzqx2lqLWblnn6mT4PJ6iZRNxUGA66Ke7RJ0CKC44DL3mturNs_w3QT7KhTVIWbQE2tJgBHU7gpzB2GG4sFGXL6LiayJ5zEn_AGhxBlw" 
     } 
    }, 
    "reviewed_object": { 
     "type": "Post", 
     "id": "52e7800313556440b4b0aa134" 
    }, 
    "custom_fields": { 
    } 
    }, 
    { 
    "id": "52ea3e9d4430d0b1e0c1c16", 
    "rating": 3, 
    "created_at": "2014-01-30T11:59:25+0000", 
    "updated_at": "2014-01-30T11:59:25+0000", 
    "user": { 
     "id": "52e8fe464643d0b130b85f5", 
     "first_name": "Ganesh", 
     "last_name": "test", 
     "created_at": "2014-01-29T13:12:38+0000", 
     "updated_at": "2014-01-29T13:12:38+0000", 
     "external_accounts": [ 

     ], 
     "confirmed_at": "2014-01-29T13:12:38+0000", 
     "username": "john", 
     "role": "r", 
     "admin": "false" 
    }, 
    "reviewed_object": { 
     "type": "Post", 
     "id": "52e7800343556b4dsfsdfh3434" 
    }, 
    "custom_fields": { 
    } 
    }, 
] 

나는이 ID를 사용하여 필터링 할 ..

"reviewed_object": { 
     "type": "Post", 
     "id": "52e7800343556b4dsfsdfh3434" 
    } 

내 조건에 무엇을 써야합니까?

Cloud.Reviews.query({ 
      page : 1, 
      per_page : 20, 
      where : { 
       rating : { 
        '$gt' : 1.0 
       }, 

      }, 
      order : "-created_at" 

     } 
+0

사람이 하나를 시도; – GaneshKumar

답변

1

내가 문 가깝지만가 완벽하게 작동 곳없이 내 게시물 아이디 조건을 .. 추가 한

내 코드 :

Cloud.Reviews.query({ 
      page :1, 
      per_page : 20, 
      post_id : Your Post id 

     }, function(e) { 
      if (e.success) {