And

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.

Parameters

Argument Type Definition and Requirements

value

Boolean

One or more boolean values.

Returns

A boolean value.

Examples

The query below returns false because the last argument is "false".

client.query(q.And(true, true, false))
.then((ret) => console.log(ret))
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!