replace

ReQL command: replace

Command syntax

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

Description

Replace documents in a table. Accepts a JSON document or a ReQL expression, and replaces the original document with the new one. The new document must have the same primary key as the original document.

The replace command can be u