AnyEntityQuery
A type-erased, intermediate representation of your entity query for testing purposes.
Declaration
struct AnyEntityQueryOverview
The AnyEntityQuery structure resolves to your concrete query type, and allows you to test your entity queries and verify their results as shown in the following example:
let landmarkDef = definitions.entities["LandmarkEntity"]
// Query by string.
let stringQueryResults = try await landmarkDef.entities(matching: "Yosemite")
// Query by identifiers.
let specific = try await landmarkDef.entities(identifiers: ["yosemite-falls"])
// Get all entities.
let all = try await landmarkDef.allEntities()