Maybe I’m blind, but I can’t seem to find how to invoke resolver functions from backend code. The docs only show backend calls from the frontend bridge/invoke method. How do we invoke backend functions from within the backend? Am I forced to wrap a common function which I can call directly as well as within a resolver? Feels a little gross…
@ScottB When your code is executing in the Backend, you don’t need a resolver to call another Backend function. Just import and call the function directly.
We went in the direction of the resolver.define functions composed of a unique call of a Backend function. This way, Backend functions can be called from any resolver function.
Hi Fabien,
Thanks for the reply! I am refactoring an older app which had shared “backend” functions being called from both “frontend” and “backend” files to the latest runtime. I suppose wrapping all the existing functions with the resolver.define methods but keeping their original definitions will be the only option if we can’t make the same invoke calls from the backend.