We have a javascript query that triggers a bunch of other queries in succession and using the .onSuccess() callback leads to some pretty gnarly spaghetti code. I saw the documentation on query.trigger() and promises and tried to use .then() to link my queries:
Hey Alex,
I've set up two functions similar to your five & seven. Then I have a js function that calls them both, sequentially. Both the commented-out code, and the (slightly nicer, imo) await code work. Will either of these work for you?