ReQL command: array

Command syntax

r.array(value[, value...]) → array

Description

Take one or more values as arguments and return an array. (Technically, return a List object.)

Example: Create an array.

r.expr(r.array(10, 20, 30)).run(conn);

This is a ReQL equivalent to:

List<Integer> myArray = Arrays.asList(10, 20, 30);

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