---
title: defaultQuery
framework: appintents
role: symbol
role_heading: Type Property
path: appintents/appentity/defaultquery-4khg7
---

# defaultQuery

The default query to use to retrieve entity property instances.

## Declaration

```swift
static var defaultQuery: Self.DefaultQuery { get }
```

## Mentioned in

Defining app entities for your custom data types

## Discussion

Discussion You can create a query that uses identifier, name and more. For additional information, see Query.

## See Also

### Making the entity queryable

- [DefaultQuery](appintents/appentity/defaultquery-swift.associatedtype.md)
- [defaultResolverSpecification](appintents/appentity/defaultresolverspecification-2dpf2.md)
- [defaultResolverSpecification](appintents/appentity/defaultresolverspecification-589eq.md)
