---
title: allEntities()
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: appintentstesting/appentitydefinition/allentities()
---

# allEntities()

Fetches all available entities of this type.

## Declaration

```swift
func allEntities() async throws -> [AnyAppEntity]
```

## Return Value

Return Value An array containing all entities of this type.

## Discussion

Discussion note: Any errors encountered during the query execution.

## See Also

### Retrieving all entities

- [allEntitiesQuery()](appintentstesting/appentitydefinition/allentitiesquery().md)
