Contents

Query

A type that fetches models using the specified criteria, and manages those models so they remain in sync with the underlying data.

Declaration

@MainActor @preconcurrency struct Query<Element, Result> where Element : PersistentModel

Mentioned in

Topics

Creating a query

Creating an unsorted, sectioned query

Creating a sorted, sectioned query

Getting query configuration

Accessing the value

Accessing sections

See Also

Model fetch