# `Ash.Query.Function.Length`
[🔗](https://github.com/ash-project/ash/blob/v3.27.8/lib/ash/query/function/length.ex#L5)

Returns the length of a list attribute defined by the composite type `{:array, Type}`.

    length(roles)

If the attribute allows nils:

    length(roles || [])

# `args`

# `has_partial_evaluate?`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
