bizz84 / bizz84/starter_architecture_flutter_firebase
Using advanced Firestore features (e.g. transactions, batched writes, etc.)
- Dominant language
- Dart
- Stars
- 1.8k
- Forks
- 488
- PR merge metrics
- No merged PRs in 30d
Description
## TL;DR
what about Firestore transactions, batched writes, field value operations (e.g. `FieldValue.arrayUnion`)?
## Long version
First off, thank for this repo! I have been developing apps in Flutter and it is refreshing to see a different take on app architecture. I have learnt a lot from your work.
I am considering the abstraction you use for working with Firestore db. The approach of viewing it as a CRUD db makes testing easier and also probably migrating to a different db possible.
This abstraction, however, comes at the cost of not having access to the Firestore's advanced features such as transactions, batched writes, field operations such as `FieldValue.arrayUnion()`, `FieldValue.increment()`, etc.
I'm interested to know how would you approach exposing these features while still aiming for testability and portability.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.