-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vector field types are not replicated #9
Comments
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: