What I’m trying to do
I am trying to generate a list of task from a DQL Query that can be reusable in different notes.
Things I have tried
I am calling a script from a note using
await dv.view('dv-pending-attendees')
The script is
const result = await dv.query(`
TASK
LIMIT 5
`)
if (result.successful) {
dv.list(result.value.values)
}
else {
dv.paragraph("~~~~\n" + result.error + "\n~~~~")
}
This returns:
When I would like to have that:
I believe this has to do with the dv.list syntax, but I cannot figure it out.
I tried:
- dv.list(result.value.values)
- dv.list(result.value.text)
- dv.list(result.value.values.text)
with no luck.
Maybe the solution is to use another dv.xxx but I could not find which.
Anyone knows the syntax?
Thanks