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}
什么是查询有关于用户配置类以正确的方式,我想只关系到特定的用户配置对象?