-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
1 - XS (<= 1 day)
-
3733
Goals
A strongly typed and unified API across Realm JS and Realm Web.
Expected Results
I would expect calling a MongoDB Realm function would have the same signature across our supported platforms.
Actual Results
The TypeScript declarations and Realm Web implementation takes arguments using "rest parameter" syntax. Whereas the Realm JS implemeation and JS docs takes an array of arguments as its 2nd positional argument.
We might consider deprecating and consider the callFunction method private altogether, since we intent user to call functions in the slightly more convenient syntax:
user.functions.sum(1, 2);
Version of Realm and Tooling
- Realm JS SDK Version: Realm JS 10.4.0 and Realm Web 1.2.1
- Node, React Native and Web.
- Client OS & Version: N/A
- Which debugger for React Native: None
- duplicates
-
RJS-1252 User#callFunction signature is different between Realm JS & Realm Web
- Closed