mirror of https://gitee.com/bigwinds/arangodb
16 lines
547 B
Markdown
16 lines
547 B
Markdown
////////////////////////////////////////////////////////////////////////////////
|
|
/// @startDocuBlock JSF_foxx_repository_replace
|
|
/// `FoxxRepository#replace(model)`
|
|
///
|
|
/// Find the model in the database by its *_id* and replace it with this version.
|
|
/// Expects a model. Sets the revision of the model.
|
|
/// Returns the model.
|
|
///
|
|
/// @EXAMPLES
|
|
///
|
|
/// ```javascript
|
|
/// myModel.set('name', 'Jan Steemann');
|
|
/// repository.replace(myModel);
|
|
/// ```
|
|
/// @endDocuBlock
|
|
//////////////////////////////////////////////////////////////////////////////// |