FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. Fauna accounts created after August 21, 2024 must use FQL v10. These accounts will not be able to run FQL v4 queries or access the v4 Dashboard. For more details, see the v4 EOL announcement and migration guide. Contact support@fauna.com with any questions. |
IsEmpty
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
IsEmpty( arrayOrSet )
is_empty( array_or_set )
IsEmpty( arrayOrSet )
IsEmpty( arrayOrSet )
IsEmpty( arrayOrSet )
IsEmpty( arrayOrSet )
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
Array, Page, or Set |
An Array, Page, or Set, which is checked for the non-existence of items. |
Examples
The following query executes an array of independent IsEmpty
operations and returns the results in an array. The result array
position matches the execution array position. The first IsEmpty
operation operates on an empty array and places the result of true in
the top position in the result array. The second IsEmpty
operation
operates on an array with a single value of 1 and places the result of
false in the second position in the result array. The third IsEmpty
operation operates on an array with a two values and places the result
of false
in the third position in the result array.
[ true, false, false ]
[True, False, False]
[true false false]
Arr(BooleanV(True), BooleanV(False), BooleanV(False))
[true, false, false]
[ true, false, false ]
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!