Spec-Zone.ru › RethinkDB ruby

ReQL command: expr

Command syntax

r.expr(value) → value

Description

Construct a ReQL JSON object from a native object.

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

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

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

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

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API