Closed
Description
With the current API, there is no way to retrieve unknown fields from a DocumentSnapshot
, only known fields can be retrieved (e.g. with contains()
and get()
).
The DocumentSnapshot
needs to also expose a map-like API, like below:
val size: Int
val entries: Set<Pair<String, Any>>
val keys: Set<String>
val values: Collection<Any>
This allows enumeration of all fields, not just those known at compile-time.