FYI, the Logseq Query Exporter plugin is now in the marketplace, and supports exporting to markdown and json.
It’s new and has some limitations:
- only advanced queries
- sorting is done by the plugin, not the query, so if you want it to work you need to have the output of your query structured in a certain way.
It’s also pretty new so might be buggy.