Closed ming-chu closed 8 months ago
@atn832 Thanks for the review. I just pushed the new commit according to the comments. Please let me know if I missed any :)
I published your fix to https://pub.dev/packages/fake_cloud_firestore/changelog#247.
I also switched to Dart 3 and used pattern matching to rewrite getAggregateFieldName
: https://github.com/atn832/fake_cloud_firestore/commit/f277193d98665292dc929728dde45a465aeaeefd
https://dart.dev/language/patterns#switch-statements-and-expressions
This PR has fixed the aggregate query problem on converted queries. https://github.com/atn832/fake_cloud_firestore/pull/290#discussion_r1445569625 The error log would be like: