1
比方说,我有一个userSnapshot
我所用get
操作有:Firestore - 如何从DocumentSnapshot获取集合?
DocumentSnapshot userSnapshot=task.getResult().getData();
我知道我能够从documentSnapshot
得到field
像这样(例如):
String userName = userSnapshot.getString("name");
它只是帮助我获得fields
的值,但如果我想在此userSnapshot
下获得collection
?例如,其friends_list
collection
其中包含documents
的朋友。
这可能吗?