In my frontmatter, I have defined a list of “areas” a note can belong to:
---
creation_date: 2023-03-02
areas:
- "[[area1]]"
- "[[area2]]"
---
In the notes for the respective areas, I want to write a query that lists all notes belonging to that area:
dv.table(
["Link", "Areas"],
dv.pages()
.filter(p => (p.areas && p.areas.contains(dv.current().file.link)))
.map(b => [
b.file.link,
b.areas ? (b.areas.length ? b.areas.join(", ") : b.areas) : b.areas
])
)
However, I cannot get the second part of the filter to work. Does it have something to do that the links in the YAML frontmatter have quotation marks around them? They also don’t show up in the outlinks.