Back to top

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);

Get more help

Couldn't find what you were looking for?