alickbass / CodableFirebase

Use Codable with Firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Encode and decode documents for subcollection?

siyao1030 opened this issue · comments

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!