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
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:Intval 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.
The text was updated successfully, but these errors were encountered:
You could either implement a Map-like interface directly on the DocumentSnapshot class, or implement getMap() or something which returns the native Map<String, Any>...
With the current API, there is no way to retrieve unknown fields from a
DocumentSnapshot
, only known fields can be retrieved (e.g. withcontains()
andget()
).The
DocumentSnapshot
needs to also expose a map-like API, like below:This allows enumeration of all fields, not just those known at compile-time.
The text was updated successfully, but these errors were encountered: