isNullOrEmpty

Full name: taxi.stdlib.isNullOrEmpty

Signature

declare extension function <T> isNullOrEmpty(collection:T[]):Boolean

Description

Returns true if the provided collection is either null or contains zero elements.

find { order: Order } as {
   hasNoItems: Boolean = order.items.isNullOrEmpty()
}

Examples

Returns true for an empty collection, false when the collection has elements.

Try it out

Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed
Next
Welcome to Taxi