跳到主要内容

update_entity_field

更新实体数据字段

声明

bool update_entity_field(string rid, map fields, string db_collection = "entity")

参数

参数名描述
rid实体RID
fields实体数据字段词典
key : 字段名称
value : 字段值
db_collection数据集合名称

返回值

true - 更新成功, false - 更新失败

使用方式

返回文档