Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 699 Bytes

File metadata and controls

34 lines (26 loc) · 699 Bytes
layout api-command
language Python
permalink api/python/values/
command values
io
singleSelection
array
object
array
related_commands
keys
keys/

Command syntax

{% apibody %} singleSelection.values() → array object.values() → array {% endapibody %}

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" ]