跳到主要内容

distinct

执行distinct操作,获取指定字段的所有唯一值

声明

array distinct(int coll_handle, string coll_name, string key, map query = {})

参数

参数名描述
coll_handle集合句柄
coll_name集合名称
key字段名称
query查询条件

返回值

[ 操作错误信息, 操作结果 ]

使用方式

返回文档