We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79bd4f2 commit afd8d49Copy full SHA for afd8d49
Sources/SwiftQuery/Query.swift
@@ -39,11 +39,11 @@ public struct Query<T: PersistentModel> {
39
public var range: Range<Int>?
40
41
/// SwiftData compatible sort descriptors generated from the query's sort configuration.
42
- package var sortDescriptors: [SortDescriptor<T>] {
+ public var sortDescriptors: [SortDescriptor<T>] {
43
sortBy.map { $0.sortDescriptor }
44
}
45
46
- package var fetchDescriptor: FetchDescriptor<T> {
+ public var fetchDescriptor: FetchDescriptor<T> {
47
var descriptor = FetchDescriptor(predicate: predicate, sortBy: sortDescriptors)
48
if let range {
49
descriptor.fetchOffset = range.lowerBound
0 commit comments