Spec-Zone.ru › RethinkDB ruby

ReQL command: ne

Command syntax

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

Description

Test if two or more values are not equal.

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

r.table('users').get(1)['role'].ne('administrator').run(conn)

Example: See if three variables do not contain equal values.

r.ne(a, b, c).run(conn)

Related commands

  • &, and
  • |, or
  • eq

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

Spec-Zone.ru

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