I need to access, from a realm app function, another realm app’s (in the same project) functions.
Is there a straightforward way to do this? I could not find any explicit information in the documentation.
I have tried using this approach https://docs.mongodb.com/realm/node/call-a-function/.
I then needed to upload the “realm” dependency. I installed the realm-package locally and followed the instructions here: https://docs.mongodb.com/realm/functions/upload-external-dependencies/. But on upload I get the following error
Failed to upload node_modules.tar.gz: unknown: Unexpected token (216:9) 214 | } 215 | > 216 | async* watch({ids = undefined, filter = undefined} = {}) { | ^ 217 | let args = { 218 | database: this.databaseName, 219 | collection: this.collectionName,
which I find impossible to interpret.
Very thankful for any help you could provide!