You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented logic to delete all documents in a collection using batch.
improved, including saving some redundant logic using Combine+extension.
Previously, when receiving collection documents, the endpoints response DTO type was specified as a single type even if it had to be received as an array, but now it must be specified as an array. 🤩
[Example]
When deleting all documents in a collection, set the FirestoreMethod type to deleteADocument.
And then, call a request(endpoint:) func using FirestoreService object ! delete it.
Before deletion, FirestoreAccessible's documentRef must be nil and collectionRef must be specified as the deletion target path in the endpoint.