Closed Prayer-RecycleSmart closed 1 year ago
hi @Prayer-RecycleSmart
Derivatives run on the server and use firebase-admin
sdk
so it you need you use the firebase-admin
npm instead of firebase
here's the working derivative
const derivative:Derivative = async ({row,ref,db,storage,auth})=>{
const { GeoPoint } = require('firebase-admin/firestore');
const test = new GeoPoint(-90,180);
return test;
}
Thanks @shamsmosowi - love this product!
Describe the bug Can get the function to return a GeoPoint
To Reproduce
Expected behavior Should add a geopoint in Firestone/rowy
Desktop (please complete the following information):