javascript中是否有一个GeoFirestore near函数提供了一个fieldname参数,就像函数中的Flatter GeoFirestore一样?
我正在创建一个云函数,让用户GeoFirestore从Firestore数据库查询用户文档。 在颤振中,功能内有一个Geofirestore,具有三个参数:javascript中是否有一个GeoFirestore near函数提供了一个fieldname参数,就像函数中的Flatter GeoFirestore一样?,javascript,google-cloud-firestore,google-cloud-functions,geofirestore,Javascript,Google Cloud Firestore,Google Cloud Functions,Geofirestore,我正在创建一个云函数,让用户GeoFirestore从Firestore数据库查询用户文档。 在颤振中,功能内有一个Geofirestore,具有三个参数: geo.collection(collectionRef: collectionReference).within(center: center, radius: radius, field: fieldName); 在JavaScript中,有一个near函数只有两个参数: geo.near({ center: center, radi
geo.collection(collectionRef: collectionReference).within(center: center, radius: radius, field: fieldName);
在JavaScript中,有一个near函数只有两个参数:
geo.near({ center: center, radius: radius});
我在firestore中的文档结构如下:
因此,我需要将fieldname传递给javascript函数,以便查询能够正常运行。不幸的是,我在JavaScript中找不到提供所需功能的函数。有人能帮我吗
非常感谢您的帮助!
多谢各位