Skip to content

Add DocumentSnapshot.entries to Firestore #186

Closed
@brettwillis

Description

@brettwillis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API coverageRequest for missing APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions