Closed Stev3nsen closed 1 year ago
It is automatic.. it works off of Duck Typing (source). If you don't want to do that, you'll have to rename the keys, or add an additional property since it's typically beneficial to use the built-in storage type that Firestore provides.
Hey guys, thanks for your awesome work. I have simple question. See below.
Minimal Code to Reproduce the Problem
Explain the Problem in Detail
When i create a document that contains a map with following structure
a document field gets some kind of auto converted to a geopoint type.
Expected result
In Firestore console i expected my location field as map structure and not as geopoint.
Actual result
The location field is automatically converted in a geopoint. Is there a way to prevent this behavior?