It’s kind of strange that you got a Promise out of that call, as it shouldn’t return that. If however it was meant to return that, like various Templater functions, you could use await in front to resolve the promise.
But in general I’ve never needed to so for a inline query, so this should work as the minimal example to display such a list:
I tried await in all its imaginable variations.
Still doesn’t work.
I guess it is a limitation of inline JavaScript, if we follow the documentation. One line per response; no multiline.
It’s not a limitation of dataview itself. I’ve done this for ages. It’s rather a combination of some other factors. Like your installation, Obsidian version, plugins…
Which version are you currently on? Could this be related to 1.5.8 which I’m having large issues with currently? (Not this issue, but other stuff).
But there is no problem having dataview return multiple lines of response using inline queries. I daily build large group of objects both in my test vault and personal vault, so your issue is related to your setup somehow.
OK, to further pursue this issue you should post a new thread. It’s not correct of us to hijack this thread to discuss something which clearly isn’t related to the question this thread is supposed to be about.