This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
1.2.0
🎉 Thank you for supporting EasyFirebase! I'm a full-time student spending my free time on this library, so I apologize if there any bugs present. Feel free to contribute with a pull request or report buts in Issues!
New Features
Firestore Updating
Quickly update values in Firestore without initially knowing what the values are using EasyFirestore.Update
:
EasyFirestore.Updating.increment(\.chipsEaten, by: 6, in: myFoodEaten)
myFoodEaten.increment(\.chipsEaten, by: 6) { error in
// ...
}
Safe Setting
Set documents in Firestore only if they do not exist in their respective collection:
EasyFirestore.Storage.setIfNone(myCar, checking: myMissingCarID) { error in
// ...
}
These values are even mutated locally, so you don't need to update them yourself.