Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 533 Bytes

prepend.md

File metadata and controls

28 lines (22 loc) · 533 Bytes
layout language permalink command related_commands
api-command
Python
api/python/prepend/
prepend
append merge insert_at delete_at change_at
append/
merge/
insert_at/
delete_at/
change_at/

Command syntax

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

Description

Prepend 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'].prepend('newBoots').run(conn)