Skip to content

Commit d14dc98

Browse files
authored
Make predicate optional for query (#234)
1 parent 64cf2b3 commit d14dc98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Amplify/Categories/DataStore/DataStoreCategory+Behavior.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extension DataStoreCategory: DataStoreBaseBehavior {
1717
}
1818

1919
public func query<M: Model>(_ modelType: M.Type,
20-
where predicate: QueryPredicateFactory?,
20+
where predicate: QueryPredicateFactory? = nil,
2121
completion: DataStoreCallback<[M]>) {
2222
plugin.query(modelType, where: predicate, completion: completion)
2323
}

0 commit comments

Comments
 (0)