Skip to content

Commit f4281c5

Browse files
authored
Update README.md
1 parent 3f0afc5 commit f4281c5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ var items
175175
@FetchAll(Item.where(\.isInStock))
176176
var items
177177

178+
179+
178180
@FetchOne(Item.count())
179181
var inStockItemsCount = 0
180182

@@ -190,7 +192,9 @@ var items: [Item]
190192
@Query(sort: [SortDescriptor(\.title)])
191193
var items: [Item]
192194

193-
@Query(filter: #Predicate<Item> { $0.isInStock })
195+
@Query(filter: #Predicate<Item> {
196+
$0.isInStock
197+
})
194198
var items: [Item]
195199

196200
// No @Query equivalent of counting

0 commit comments

Comments
 (0)