Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1252

User#callFunction signature is different between Realm JS & Realm Web

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • Q3-22FY
    • Affects Version/s: None
    • Component/s: None

      Goals

      A unified API across Realm JS and Realm Web.

      Expected Results

      A user would expect to be able to call a remote function using the callFunction method on a User in the same way, regardless of them using Realm JS or Realm Web.

      Actual Results

      Where Realm JS takes two parameters (the name of the function and an array of arguments), Realm Web takes a name and an unbound number of arguments. This should be aligned - I suggest updating Realm Web to match the Realm JS implementation.

      Version of Realm and Tooling

      • Realm JS SDK Version: Realm JS v10.5.0 & Realm Web v1.3.0.
      • Node or React Native: N/A
      • Client OS & Version: N/A
      • Which debugger for React Native: N/A

            Assignee:
            Unassigned Unassigned
            Reporter:
            kraen.hansen@mongodb.com Kræn Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: