update

ReQL command: update

Command syntax

table.update(object | function[, :durability => "hard", :return_changes => false, :non_atomic => false]) → object
selection.update(object | function[, :durability => "hard", :return_changes => false, :non_atomic => false]) → object
singleSelection.update(object | function[, :durability => "hard", :return_changes => false, :non_atomic => false]) → object

Description

Update JSON documents in a table. Accepts a JSON document, a ReQL expression, or a combination of the two.

The optional arguments are:

  • durability: possible values are hard and soft. This option will override the table or query’s durability setting (set in 登录查看完整内容