我们可以通过javascript中的documentId来订购集合查询,.orderBy(firebase.firestore.FieldPath.documentId())
在python中是如何做到这一点的,在python SDK引用中似乎找不到类似的对象(field_path.docent_id(。
可以这样做
from google.cloud.firestore_v1.field_path import FieldPath
.order_by(FieldPath.document_id())
它在这里的代码中找到