toutiao
toutiao copied to clipboard
云开发头条小程序
Results
1
toutiao issues
Sort by
recently updated
recently updated
newest added
我看大佬查找资讯详情的数据库 是用云函数的 where API 根据字段来查找,但是这样有一个问题,就是返回的结果是一个array,读取的时候有点不方便。 然后我现在就是使用的 .doc() 这个API 根据字段来查找详情数据。 但是我现在用 .doc() 遇到的问题: 1、只能根据数据库自动生成的 _id来进行查找, 不能根据自己创建的索引字段来进行查找。比如我在集合创建来一个 索引字段是 new_id, 然后在云函数调用 .doc('new_id'),就会一直报错查不到。 报错错误: errMsg: document.get:fail document with _id 10002 does not exist; at...