Preview notes from dataview query

Just as you can preview a linked note with the ![[note]] syntax, I’m wondering if there is a way to do the same with dataview.

For instance, I have the query below. Instead of displaying the results as a bullet list of note titles, I’d like to preview the contents of the notes.

```dataview  
list from [[]] and !outgoing([[]])

If this is possible, how do I do it? Thanks for your help!

Need to use DataviewJS:

~~~dataviewjs
for (const embed of dv.pages('[[]] and !outgoing([[]])')
  .map(p => dv.func.embed(p.file.link))) {
  dv.paragraph(embed)
}
~~~
2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.