Support UUID as a data type
I'm using Go client, and at this time UUIDs are represented as array of numbers. This doesn't make any sense and is quite clunky and unergonomic, but this is the client behaviour - the Go type [16]byte
converts to that, and there is no way to affect it directly.
This also means that a list of UUIDs is impossible to represent at all, since a Go slice converts into an array, and Firestore can't handle arrays in arrays. Btw, that by itself is ridiculous, but right now my problem is with UUIDs specifically.
A list of IDs is a trivial use case and I would imagine quite common, and I'm confused as to why this supposedly mature product is not designed to handle it. It has a special data type for Lat/Lon, but not for UUIDs, really?
-
Alex Kotenko commented
I guess I'll go check if MongoDB is saner than this.