Call serverless functions in offline mode of MongoDB Realm Sync

176 views Asked by At

MongoDB Realm allows the creation of serverless functions on the cloud which can be called from the client SDK.

My query is when working with Realm sync, are these functions also synced to the local database and can they be called on the locally synced database in offline mode. If yes what would be the correct way of doing it with react-native assuming that the basic configurations have been done for connection? If not then do I need to rewrite the complex function logic(which does more than just querying and filtering) on the client-side?

I did some basic investigation but could not find any concrete answers except this. This answer assumes that the functions are called using HTTPS endpoints but my intention is to call these functions directly on the client without endpoints.

0

There are 0 answers