1
0
Fork 0
arangodb/Documentation/DocuBlocks/JSF_foxx_repository_updateB...

386 B

FoxxRepository#updateById(id, object)

Find an item by ID ("collection/key") or "key" and update it with the attributes in the provided object.

If the object is a model, updates the model's revision and returns the model.

@EXAMPLES

repository.updateById('test/12131', { newAttribute: 'awesome' });
repository.updateById('12132', { newAttribute: 'awesomer' });