How firebase http function to return snapshot to swift app
问题 I have a firebase function performing a query and filtering by a geohash search radius. It's working but I am returning Json and what I really want to do is return a snapshot. I am new to firebase functions. Here is my firebase function var GeoFirestore = require('geofirestore').GeoFirestore; exports.geoQueryWitningRadius = functions.https.onRequest(async (req, res) => { const data = req.body; const lat = data.lat; const lon = data.lon; const radius = data.radius; const firestore = admin