Back to top

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).g("role").eq("administrator").run(conn);

Example: See if three variables contain equal values.

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

Get more help

Couldn't find what you were looking for?