Spec-Zone.ru › RethinkDB ruby

ReQL command: values

Command syntax

singleSelection.values() → array
object.values() → array

Description

Return an array containing all of an object’s values. values() guarantees the values will come out in the same order as keys.

Example: Get all of the values from a table row.

# row: { :id => 1, :mail => "fred@example.com", :name => "fred" }

r.table('users').get(1).values().run(conn)

> [ 1, "fred@example.com", "fred" ]

Related commands

  • keys

© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/ruby/values/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API