Enable calling a nested Atlas function from Swift SDK
Atlas app services allows organizing atlas functions into folders within a project, and you can call these nested functions from within other atlas functions. See this tip in your documentation for a quick explanation of this behavior: https://www.mongodb.com/docs/atlas/app-services/functions/#write-the-function-source-code
That said, it is not currently possible to call a nested atlas function from the Swift SDK (you can only call top-level functions from the Swift SDK). This means that all publicly accessible functions must be located in the top-level of my functions directory of my project, which makes my files very unorganized and hard to find the function I'm looking for.
It would be great if you could allow calling nested functions from the Swift SDK so that I can better organize my project files.
///////////
UPDATE Sep 21, 2023:
After some experimentation, it looks like you can already do this actually! Here's an example of how:
guard let currentUser = realmApp.currentUser else { return }
let result = try await currentUser.functions[dynamicMember: "path/to/functionName"]([])
I would just ask that you please update your documentation to include an example of calling a nested function like this so that other people are aware.