Spec-Zone.ru › RethinkDB javascript

ReQL command: eq

Command syntax

value.eq(value[, value, ...]) → bool

Description

Test if two or more values are equal.

Example: See if a user’s role field is set to administrator.

r.table('users').get(1)('role').eq('administrator').run(conn, callback);

Example: See if three variables contain equal values.

r.eq(a, b, c).run(conn, callback);

Related commands

  • and
  • or
  • ne

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

Spec-Zone.ru

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