提交 1da22d4c 编写于 作者: d-u-a's avatar d-u-a 提交者: qiang

fix: unicloud-db foreignKey 提到 collection 后面 where 前面

上级 c2c5b034
......@@ -441,15 +441,15 @@ export default {
db = db.collection(...this.collectionArgs)
if (this.foreignKey) {
db = db.foreignKey(this.foreignKey)
}
if (!(!this.where || !Object.keys(this.where).length)) {
db = db.where(this.where)
}
if (this.field) {
db = db.field(this.field)
}
if (this.foreignKey) {
db = db.foreignKey(this.foreignKey)
}
if (this.groupby) {
db = db.groupBy(this.groupby)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册