Custom Converter does not work when using update method #1786
Labels
api: firestore
Issues related to the googleapis/nodejs-firestore API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
@google-cloud/firestore
version:6.3.0Steps to reproduce
Demonstration
Since User is incompatible with FieldValue, it must be converted using UserConverter, but it seems that the update method does not use Converter and evaluates it directly.
I have used create and set methods in other places, but have not seen the same problem.
Survey
Within the WriteBatch Class The ref._converter was called inside the create and set methods, but not inside the update method.
The text was updated successfully, but these errors were encountered: