gpt4 book ai didi

android - Syncano - 获取引用特定 UserProfile 的对象

转载 作者:可可西里 更新时间:2023-11-01 11:42:27 25 4
gpt4 key购买 nike

我有一类“工作”对象——都与 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 相关的对象?

最佳答案

哦,这很快。您需要在此字段上启用 Field Fitering(通过代码(注释)或 Web 仪表板)。 http://docs.syncano.io/docs/android#section-fields-filtering http://docs.syncano.io/docs/data-objects-filtering

关于android - Syncano - 获取引用特定 UserProfile 的对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35723525/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com