I have a question - how can a function dynamically switch between predefined inputs? I.e. have different input queries targeted to specific use cases (i.e. cart data/customer data, etc)
Right now, it’s not possible for a function to have different input query.
A function needs to be deterministic and keeping input and output structure defined is a necessity for that.
If it’s a function that does support multiple functions per store, you can actually create 2 functions and split your business logic among those 2 functions. Of course, the implementation depends a lot on the use case but this is one suggestion without knowing the use case.
@NickWesselman or @David-Shopify would be the best people to expand on it.