expr

ReQL command: expr

Command syntax

r.expr(value) → value

Description

Construct a ReQL JSON object from a native object.

If the native object is a Node.js Buffer, then expr will return a binary object. See binary for more information.

Example: Objects wrapped with expr can then be manipulated by ReQL API functions.

r.expr({a:'b'}).merge({b:[1,2,3]}).run(conn, callback)

Example: In JavaScript, you can also do this with just r.

r({a: 'b'}).merge({b: [1,2,3]}).run(conn, callback)

Get more help

Couldn't find what you were looking for?

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部