You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define a function named 'test_function' like so in the realm UI and in the settings allow an api-key authenticated user to call it via user id authentication.
exports = function() {
return "HELLO";
};
From node log in a user and try call the function without passing args.
const app = new App({ id: appId });
const credentials = Credentials.serverApiKey(apiKey);
const user = await app.logIn(credentials);
user.callFunction('test_function');
Version of Realm and Tooling
Realm JS SDK Version: ^10.4.0
Node: 12.18.2
Client OS & Version: macOS Mojave 10.14.6
The text was updated successfully, but these errors were encountered:
Note
I am reporting this issue as I see the following message in the terminal
IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new
Goals
Call a simple function which requires no args as authenticated user.
Expected Results
{{user.callFunction("some_function_name") }}
should either throw a simple error explaining that
callFunction
expects both name and args or default args to empty array if none are passed.Actual Results
Steps to Reproduce
Define a function named 'test_function' like so in the realm UI and in the settings allow an api-key authenticated user to call it via user id authentication.
From node log in a user and try call the function without passing args.
Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: