Hi! My app is currently using Firebase Authentication and Firebase Functions. I will keep Auth, but am looking to migrate some cloud functions away from firebase and into MongoDb Realm.
In firebase, you are able to structure your code into folders so you can share code between multiple functions, which is nice and intuitive. In MongoDb Realm this doesn’t seem possible? Am I missing something? It looks like a folder is created for each MongoDb Realm function and you get config.json and a source.js, so how do I share code between functions?
The only way I have seen mentioned is by creating your own npm modules, which seems a bit complex. Is this the only way?