We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(I haven’t tested but I assume the function is not implemented yet. So far I don’t use transactions in my Flutter app)
https://firebase.google.com/docs/firestore/manage-data/transactions#transactions
final DocumentReference postRef = Firestore.instance.document('posts/123'); Firestore.instance.runTransaction((Transaction tx) async { DocumentSnapshot postSnapshot = await tx.get(postRef); if (postSnapshot.exists) { await tx.update(postRef, <String, dynamic>{'likesCount': postSnapshot.data['likesCount'] + 1}); } });
Excerpt from https://pub.dev/packages/cloud_firestore
The text was updated successfully, but these errors were encountered:
suztomo
Successfully merging a pull request may close this issue.
(I haven’t tested but I assume the function is not implemented yet. So far I don’t use transactions in my Flutter app)
https://firebase.google.com/docs/firestore/manage-data/transactions#transactions
Excerpt from https://pub.dev/packages/cloud_firestore
The text was updated successfully, but these errors were encountered: