复制 // 更新字段
public static Update update(String key, @Nullable Object value);
public Update set(String key, @Nullable Object value);
// 设置字段值,字段不存在则新建字段
public Update setOnInsert(String key, @Nullable Object value);
// 删除字段
public Update unset(String key);
public void inc(String key);
// 字段值自增
public Update inc(String key, Number inc);
// 将 value 值追加到 key 数组中,如果 key 不存在,新建 key
public Update push(String key, @Nullable Object value);
// 将 value 添加到数组中,若数组中已存在则不添加
public Update addToSet(String key, @Nullable Object value);
public AddToSetBuilder addToSet(String key);
// 删除数组的第一(-1) 或者最后一个元素(1)
public Update pop(String key, Position pos);
// 数组中删除元素
public Update pull(String key, @Nullable Object value);
public Update pullAll(String key, Object[] values);
// 重命名字段
public Update rename(String oldName, String newName);
public Update currentDate(String key);
public Update currentTimestamp(String key);
public Update multiply(String key, Number multiplier);
public Update max(String key, Object value);
public Update min(String key, Object value);