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
MongoClient
instance. If not, what is the right packagerealm
orrealm-web
for doing this.What I meant by
MongoClient
instance is the one which I used to query my Atlas database and collections.Yes, you can use the
realm-web
package for this. To call a serverless function calledsum
with the arguments2
and3
, you would use the following code:You can find out more about how to use Realm functions in the documentation.
thanks it worked.