Equals

EqualsFn(value_1, value_2, ...)
Equals(value_1, value_2, ...)
Equals(value_1, value_2,...)
Equals(value_1, value_2, ...)
equals(value_1, value_2, ...)
equals value_1, value_2, ...
Equals(value_1, value_2, ...)
Equals(value_1, value_2, ...)

Description

The Equals function tests equivalence between a list of values.

Parameters

Argument Type Definition and Requirements

value

Any

A single boolean value.

Returns

A boolean value.

Examples

The query below returns true because fire is equivalent to fire.

curl https://db.fauna.com/ \
    -u fnAChGwBcAACAO70ziE0cfROosNJHdgBmJU1PgpL: \
    -d '{ "equals": [ "fire", "fire" ] }'
client.Query(EqualsFn("fire", "fire"));
System.out.println(client.query(Equals(Value("fire"),Value("fire"))).get());
result, _ := client.Query(f.Equals("fire", "fire"))

fmt.Println(result)
client.query(Equals("fire", "fire"))
client.query(q.equals("fire", "fire"))
$client.query do
  equals 'fire', 'fire'
end
client.query(Equals("fire", "fire"))
client.query(q.Equals("fire", "fire"))
  .then((ret) => console.log(ret))
HTTP/1.1 200 OK
{ "resource": true }
true
true
true
true
true
true
true
true

Was this article helpful?

We're sorry to hear that.
Tell us how we can improve! documentation@fauna.com

Thank you for your feedback!