我有一类“工作”对象——都与 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}
查询与 UserProfile 相关的类并且我只想要与特定 UserProfile 相关的对象的正确方法是什么?