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:
realm-web
sum
2
3
const functionName = "sum"; const args = [2, 3]; const result = await user.callFunction(functionName, args);
You can find out more about how to use Realm functions in the documentation.
thanks it worked.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.