Skip to content

Commit

Permalink
docs: clientDB alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Dec 11, 2020
1 parent 2b6ee82 commit 027c583
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/uniCloud/clientdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ db.collection('order')

### 别名@alias

`2020-11-20`起clientDB jql写法支持字段别名
`2020-11-20`起clientDB jql写法支持字段别名,主要用于在前端需要的字段名和数据库字段名称不一致的情况下对字段进行重命名。

用法形如:`author as book_author`,意思是将数据库的author字段重命名为book_author。

仍以上面的order表和book表为例

Expand Down

0 comments on commit 027c583

Please sign in to comment.