size

Full name: taxi.stdlib.size

Signature

declare extension function <T> size(collection:T[]):Int

Description

Returns the number of elements in the collection.

find { orders: Order[] } as {
   orderCount: Int = orders.size()
}

Examples

Returns the number of elements in the collection.

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