问题
If I have a Firestore document with a field of type "reference", how do I read and write that field when using automatic POJO Java object serialization?
回答1:
POJO fields of type DocumentReference and CollectionReference will automatically be populated with document and collection reference type fields from a Firestore document.
来源:https://stackoverflow.com/questions/49225103/with-firestore-how-do-i-serialize-a-reference-type-field-in-a-document-with-a-j