Команда ReQL: prepend
Синтаксис команды
array.prepend(value) → array
Описание
Добавляет значение в начало массива.
Пример: Получить список снаряжения Железного Человека с добавлением новых ботинок.
r.table('marvel').get('IronMan')['equipment'].prepend('newBoots').run(conn)
© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/python/prepend/