---
title: "init(where:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/entityquery/init(where:)"
---

# init(where:)

Creates a query that returns all entities in a scene that match specific criteria.

## Declaration

```swift
init(where predicate: QueryPredicate<Entity>)
```

## Parameters

- `predicate`: The criteria that specifies the entities to return.

## See Also

### Creating an entity query

- [init()](realitykit/entityquery/init().md)
