With Firestore, how do I serialize a reference type field in a document with a java class?

落爺英雄遲暮 提交于 2020-01-24 08:50:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!