Doug Stevenson
Doug Stevenson

Reputation: 317702

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

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?

Upvotes: 3

Views: 1043

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317702

POJO fields of type DocumentReference and CollectionReference will automatically be populated with document and collection reference type fields from a Firestore document.

Upvotes: 4

Related Questions