You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firestore has introduced a new field type of Vector.
The underlying library (firestoreproto2map) used to transform the protocol buffer to a Map must be updated first, then this library will be able to replicate those fields correctly. This is blocked by UnitVectorY-Labs/firestoreproto2map#6
The text was updated successfully, but these errors were encountered:
Per the analysis discussed on UnitVectorY-Labs/firestoreproto2map#6 and some additional experimentation, this application work with replicating vectors based on looking at the records in the web console.
Given how this is currently implemented in that Google made it so vectors are just a Map with a special structure. This is unfortunate in that it means there isn't a direct object that can be used right now to represent these, but this may change with a future version of the Firestore SDK. However, this does mean this can replicate data without any updates which is useful.
Given this is a Pre-GA offering this is likely subject to change and make eventually break.
I was expecting that the Vector would need a dedicated class like some of the other specialized Firestore data types. This may be an intentional choice by Google for how this is implemented or have been a time savings on the implementation as not introducing a new data type which likely saved a significant amount of time in implementing this.
Firestore has introduced a new field type of Vector.
The underlying library (
firestoreproto2map
) used to transform the protocol buffer to a Map must be updated first, then this library will be able to replicate those fields correctly. This is blocked by UnitVectorY-Labs/firestoreproto2map#6The text was updated successfully, but these errors were encountered: