Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @DocumentId annotation to firestore for Android and iOS #445

Open
mr-kew opened this issue Dec 13, 2023 · 3 comments
Open

Add @DocumentId annotation to firestore for Android and iOS #445

mr-kew opened this issue Dec 13, 2023 · 3 comments

Comments

@mr-kew
Copy link

mr-kew commented Dec 13, 2023

Library Class Member Platforms
firestore annotations DocumentId Android, iOS

Add a way to get documentId as a property inside @Serializable class.

It is done using annotation in native kotlin library and using property wrapper in native swift library.

@mr-kew mr-kew changed the title Add @DocumentId annotation to firestore for multiplatform Add @DocumentId annotation to firestore for Android and iOS Dec 13, 2023
@adityatri
Copy link

Would like to see this as well. Currently I'm not able to use @DocumentId annotation for Android and iOS.

@zvona031
Copy link

Any work on this?

@mr-kew
Copy link
Author

mr-kew commented May 23, 2024

@zvona031 Not from my side, I just did a workaround in my code.

I used @Transient property, that is manually set when deserializing the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants