array
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);
Related commands
Get more help
Couldn't find what you were looking for?
- Ask a question on Stack Overflow
- Chat with us and our community on Slack
- Talk to the team on IRC on #rethinkdb@freenode.net — via Webchat
- Ping @rethinkdb on Twitter
- Post an issue on the documentation issue tracker on GitHub
© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/java/array/