One Logo Pool Ball
_SwiftData_SwiftUI · IOS API REFERENCE

Query

struct · iOS 17.0+ · SDK 27.1

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

A property wrapper that fetches a set of models and keeps those models in sync with the underlying data.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

29 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

Query.modelContext

The containing type needs Swift generic type arguments. (no canonical witness for Element)

Query.fetchError

The containing type needs Swift generic type arguments. (no canonical witness for Element)

Query.wrappedValue

The containing type needs Swift generic type arguments. (no canonical witness for Element)

Query.update()

The containing type needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:animation:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:animation:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:transaction:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:transaction:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:animation:)

The containing type needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:transaction:)

The containing type needs Swift generic type arguments. (no canonical witness for Element)

Query.init(_:transaction:)

The containing type needs Swift generic type arguments. (no canonical witness for Element)

Query.init(_:animation:)

The containing type needs Swift generic type arguments. (no canonical witness for Element)

Query.sections

The containing type needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:animation:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:animation:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:transaction:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:transaction:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:animation:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:transaction:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(_:transaction:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(_:animation:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:animation:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:animation:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:transaction:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:order:transaction:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:animation:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(filter:sort:transaction:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(_:transaction:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

Query.init(_:animation:sectionBy:)

This declaration needs Swift generic type arguments. (no canonical witness for Element)

All _SwiftData_SwiftUI types →