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. |
IsNonEmpty
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
IsNonEmpty( arrayOrSet )
is_nonempty( array_or_set )
IsNonEmpty( arrayOrSet )
IsNonEmpty( arrayOrSet )
IsNonEmpty( arrayOrSet )
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
Array, Page, or Set |
An Array, Page, or Set, which is checked for the existence of items. |
Examples
The following query executes an array of independent IsNonEmpty
operations and returns the results in an array. The result array
position matches the execution array position. The first IsNonEmpty
operation operates on an empty array and places the result of false in
the top position in the result array. The second IsNonEmpty
operation
operates on an array with a single value of 1 and places the result of
true in the second position in the result array. The third IsNonEmpty
operation operates on an array with two values and places the result of
true in the third position in the result array.
[ false, true, true ]
[False, True, True]
[false true true]
Arr(BooleanV(False), BooleanV(True), BooleanV(True))
[ false, true, 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!