Types for User#callFunction
doesn't match implementation across platforms
#3733
Labels
User#callFunction
doesn't match implementation across platforms
#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:Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: