Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using advanced Firestore features (e.g. transactions, batched writes, etc.) #62

Open
amitkot opened this issue Jan 5, 2021 · 1 comment

Comments

@amitkot
Copy link

amitkot commented Jan 5, 2021

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.

@amitkot
Copy link
Author

amitkot commented Mar 24, 2021

@bizz84 I would love to hear your opinion on this topic!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant