| layout | api-command | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| language | JavaScript | ||||||||||
| permalink | api/javascript/append/ | ||||||||||
| command | append | ||||||||||
| io |
|
||||||||||
| related_commands |
|
Command syntax
{% apibody %} array.append(value) → array {% endapibody %}
Description
Append a value to an array.
Example: Retrieve Iron Man's equipment list with the addition of some new boots.
r.table('marvel').get('IronMan')('equipment').append('newBoots').run(conn, callback)