[cloud_firestore] withConverter #6246
-
The withConverter parameter is a good idea but I don't understand why we have to specify the required parameter "toFirestore" to make a query!? Both fromFirestore and toFirestore should be optional in order to be used either when reading or updating the collection. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Why would you not specify both? You should use the same reference both for reading and updating. You shouldn't use two separate refs for both reading and writing. |
Beta Was this translation helpful? Give feedback.
-
A simple case would be a view which is just displaying data without allowing the user to make any update. |
Beta Was this translation helpful? Give feedback.
Why would you not specify both?
You should use the same reference both for reading and updating. You shouldn't use two separate refs for both reading and writing.