And
And(value_1, value_2, ...)
And(value_1, value_2, ...)
And(value_1, value_2, ...)
And(value_1, value_2, ...)
and_(value_1, value_2, ...)
and_ value_1, value_2, ...
And(value_1, value_2, ...)
And(value_1, value_2, ...)
Description
The And
function computes the conjunction of a list of boolean values,
returning true
if all elements are "true", and false
otherwise.
Examples
The query below returns false
because the last argument is "false".
curl https://db.fauna.com/ \
-u fnAChGwBcAACAO70ziE0cfROosNJHdgBmJU1PgpL: \
-d '{ "and": [ true, true, false ] }'
client.Query(And(true, true, false));
System.out.println(
client.query(And(Value(true), Value(true), Value(false)))
.get());
result, _ := client.Query(f.And(true, true, false))
fmt.Println(result)
client.query(And(true, true, false))
client.query(q.and_(True, True, False))
$client.query do
and_ true, true, false
end
client.query(And(true, true, false))
client.query(q.And(true, true, false))
.then((ret) => console.log(ret))
HTTP/1.1 200 OK
{ "resource": false }
false
false
false
false
false
false
false
false
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
documentation@fauna.com
Thank you for your feedback!