Dataview: reuse DQL queries?

The following example is given on the Dataview help pages:

If I create a JS file (called t1) with:

dv.execute("LIST FROM #obsidian");
dv.execute("TABLE title, author FROM #css");

…only the second query is executed when t1 is embedded in a MD file:

```dataviewjs
dv.view("/_inbox/t1");
```

Shouldn’t both execute in line with the help pages example?

Thanks for any suggestions.

1 Like