firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

[Feature Request][Firebase Database] support for @DocumentId just like Firestore

Open risalfajar opened this issue 2 years ago • 2 comments

What feature would you like to see?

In Firestore there's @DocumentId, a useful annotation to assign document id to a class automatically. Can this be implemented for Firebase Database?

How would you use it?

data class User(
    @DocumentId val userId: String = ""
    // ... other fields
)

risalfajar avatar Apr 12 '22 21:04 risalfajar

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Apr 12 '22 21:04 google-oss-bot

Thanks for filing another feature request, @risalfajar. Our engineers will be sure to look at it once they have the time.

argzdev avatar Apr 18 '22 09:04 argzdev