Unconstrained Functions
complete
C
Carlos Gines
I would like Functions to be able to manipulate collections independently of the rules created for them.
Functions are flexible enough to implement any access control you wish. And I find it inconvenient to create rules that match some complex scenarios, like updates on documents with versioning (preserving in the db all previous versions of a document).
Drew DiPalma
complete
Hi All –
The work to allow a broader set of CRUD/Aggregate commands (and skipping of rules) within functions run as a System user is now complete. You can find documentation on System Users/Functions in the following locations:
https://docs.mongodb.com/stitch/functions/define-a-function/
https://docs.mongodb.com/stitch/authentication/#system-users
Please feel free to file an additional Canny item if there are cases which cannot be addressed by this improvement.
Thanks,
Drew
Drew DiPalma
As an update on this item – This work was started as part of an intern project, but not completed. We have now restarted this project and it will be exposed as an option to have a function run as a "System" user (similar to the option within Webhooks).
C
Carlos Gines
That's awesome!! :D Thank you!
Drew DiPalma
in progress
Drew DiPalma
planned
DiPalma
Hi Carlos – We're currently working on some improvements to the ways to configure and run functions. Within this improvement, we plan to let you set functions to be run with system level permission (full access to data made available to Stitch).