| layout | language | permalink | command | related_commands | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
api-command |
Python |
api/python/set_insert/ |
set_insert |
|
{% apibody %} array.set_insert(value) → array {% endapibody %}
Add a value to an array and return it as a set (an array with distinct values).
Example: Retrieve Iron Man's equipment list with the addition of some new boots.
r.table('marvel').get('IronMan')['equipment'].set_insert('newBoots').run(conn)