2016-03-01 62 views
2

我有一類「工作」對象 - 都與UserProfile類有關係。我想查詢與本地用戶相關的Work對象。 這就是爲什麼我做的:Syncano - 通過引用特定的UserProfile獲取對象

Where<Work> where = new Where<>(); 
where.eq(Work.FIELD_USERIDID, UserProfile.FIELD_ID, userProfile.getId()); 
Syncano.getInstance().getObjects(Work.class).setWhereFilter(where).sendAsync(callback); 

我也得到:

Response{resultCode=1, httpResultCode=400, error='{"query":"Field userProfile cannot be used in a query as it is not indexed."}', httpReasonPhrase='Bad Request', data=null} 

什麼是查詢有關於用戶配置類以正確的方式,我想只關係到特定的用戶配置對象?

回答