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

Encode and decode documents for subcollection? #73

Open
siyao1030 opened this issue Jun 15, 2019 · 0 comments
Open

Encode and decode documents for subcollection? #73

siyao1030 opened this issue Jun 15, 2019 · 0 comments

Comments

@siyao1030
Copy link

I cannot find any documented way to encode/decode array of objects in a subcollection of a document. Please help point it out if there is.

For example, I have object Group with an array "members" containing a list of object User.
How can I encode/decode "members" as a subcollection instead of a map (which is what CodableFirebase automatically encodes to).

Thank you!

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

1 participant