Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 630 Bytes

File metadata and controls

30 lines (22 loc) · 630 Bytes
layout language permalink command related_commands
api-command
Python
api/python/set_insert/
set_insert
union difference set_union set_intersection set_difference
union/
difference/
set_union/
set_intersection/
set_difference/

Command syntax

{% apibody %} array.set_insert(value) → array {% endapibody %}

Description

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)