Skip to content

Commit 05728fa

Browse files
committed
[Feat] Add isFieldDuplicated햣
1 parent 79f114d commit 05728fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/SHFirestoreService/FirestoreQueryable.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,11 @@ public protocol FirestoreQueryable {
3232
where D: Decodable,
3333
E: FirestoreEndopintable,
3434
D == E.ResponseDTO
35+
36+
/// Check if a document is duplicated or not from the endpoint requestType is a collectionRef using firestore's query.
37+
func isFieldDuplicated(
38+
endpoint: any FirestoreEndopintable,
39+
from query: FirestoreQueryHandler
40+
) -> AnyPublisher<Bool, FirestoreServiceError>
3541
}
3642
#endif

0 commit comments

Comments
 (0)