a***@163.com
a***@163.com
  • 发布:2022-05-02 17:24
  • 更新:2022-08-28 20:54
  • 阅读:668

[本地调试]"PERMISSION_ERROR: 禁止使用数据库内包含的字段名作为别名,产生冲突的数据表为:opendb-contacts,产生冲突的字段名称为:nation_china"

分类:uniCloud

[本地调试]"PERMISSION_ERROR: 禁止使用数据库内包含的字段名作为别名,产生冲突的数据表为:opendb-contacts,产生冲突的字段名称为:nation_china"
"nation_china": {
"bsonType": "string",
"title": "民族",
"description": "汉族",
"enum": {
"collection": "opendb-nation-china",
"field": "name as text ,_id as value"
},
"componentForEdit": {
"name": "uni-data-picker"
}
},

hbx版本:3.4.6.20220422

2022-05-02 17:24 负责人:无 分享
已邀请:
DCloud_uniCloud_WYQ

DCloud_uniCloud_WYQ

发一下网络请求里面看到的查询语句

c***@qq.com

c***@qq.com

同问:(version:3.4.7.20220422)

请求参数如下:

method "serverless.function.runtime.invoke"
params "{"functionTarget":"DCloud-clientDB","functionArgs":{"command":{"$db":[{"$method":"collection","$param":["opendb-contacts"]},{"$method":"field","$param":["username,gender,mobile,email,comment,nation_china{name as text},address_china{name as text}"]},{"$method":"skip","$param":[0]},{"$method":"limit","$param":[20]},{"$method":"get","$param":[{}]}]},"clientInfo":{"PLATFORM":"h5","OS":"ios","APPID":"UNICAE4031","DEVICEID":"16529520914813843339","CLIENT_SDK_VERSION":"1.0.25","LOCALE":"zh-Hans"}}}"
spaceId "3991b5d2-bb4d-481e-936c-6246d22fba68"
timestamp 1652956605845
token "575c566d-9ade-4914-b5a3-f68bddb91f8f"
s***@126.com

s***@126.com

产生了同样的问题,不知是什么原因?

版本 3.5.3.20220729

s***@126.com

s***@126.com

解决了,有外键,把外键加上就可以了

该问题目前已经被锁定, 无法添加新回复