Is there a way to call a realm function from nodejs file using the MongoClient instance. If not, what is the right package realm or realm-web for doing this.
Yes, you can use the realm-web package for this. To call a serverless function called sum with the arguments 2 and 3, you would use the following code:
Is there a way to call a realm function from nodejs file using the
MongoClientinstance. If not, what is the right packagerealmorrealm-webfor doing this.What I meant by
MongoClientinstance is the one which I used to query my Atlas database and collections.Yes, you can use the
realm-webpackage for this. To call a serverless function calledsumwith the arguments2and3, you would use the following code:You can find out more about how to use Realm functions in the documentation.
thanks it worked.