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
First of all, really happy that transactions are now available in this package! Thanks a lot.
Describe the bug When executing transaction.set(), the transaction crashes with following message:
'({(QueryDocumentSnapshot<Map<String, Object?>>) => Map<String, Object?> fromFirestore, (Map<String, Object?>) => Map<String, Object?> toFirestore})' is not a subtype of type '({(QueryDocumentSnapshot<Map<String, Object?>>) => dynamic fromFirestore, (dynamic) => Map<String, Object?> toFirestore})'
To Reproduce
await firestore.runTransaction((transaction) async { var otherIdDoc= await transaction.get(otherIdReference); transaction.update(otherIdReference, {'count': FieldValue.increment(1)}); transaction.set(docRef, {'testkey': 'testvalue'}); }
Expected behavior Expected, that the transaction works.
The text was updated successfully, but these errors were encountered:
Do you have the stacktrace and a bit more context around the issue? I can't reproduce it with what you gave us.
Sorry, something went wrong.
Tried both with withConverter and without, yet it's working fine for me.
withConverter
I don't think I'll be able to move things forward without a more complete example and a stacktrace.
Passing test:
test('regression #77', () async { final otherIdReference = await initializeTest('otherId'); await otherIdReference.set({'count': 0}); final docRef = await initializeTest('simpleDocument'); await firestore.runTransaction((transaction) async { await transaction.get(otherIdReference); transaction.update(otherIdReference, { 'count': const FieldValue.increment(1), }); transaction.set(docRef, {'testKey': 'testvalue'}); }); expect( await otherIdReference.get().then((s) => s.data()), {'count': 1}, ); expect( await docRef.get().then((s) => s.data()), {'testKey': 'testvalue'}, ); });
rrousselGit
No branches or pull requests
First of all, really happy that transactions are now available in this package! Thanks a lot.
Describe the bug
When executing transaction.set(), the transaction crashes with following message:
To Reproduce
Expected behavior
Expected, that the transaction works.
The text was updated successfully, but these errors were encountered: