FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
All
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
All( values )
all( values )
All( values )
All( values )
All( values )
Description
The All
function tests the provided values
and returns true
if all of the items in values
are true
, otherwise it returns
false
.
When values
is an empty Array or Set, All
returns true
, because values
itself is set.
All
is a better choice for handling collections of values than
the similar And
function.
The run time of For query "width" errors, the underlying set or page involves more than
100K items. This can happen when using a set function, such as
For example, instead of:
use:
This does mean that if the entire set must be evaluated to arrive at the
correct result, you would have to page through the For query timeout errors, you may specify a larger query timeout via the driver that you are using. |
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
Array or Set |
A group of values to test for being |
Examples
The following query uses All
multiple times to demonstrate how
the function evaluates several groups of values:
[ true, false, true ]
[True, False, True]
[true false true]
Arr(BooleanV(True), BooleanV(False), BooleanV(True))
[ true, false, true ]
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!