Skip to content

1.2.0

Compare
Choose a tag to compare
@benlmyers benlmyers released this 11 Mar 10:03
· 83 commits to main since this release

🎉 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.