Multi-value attributes in YAML front matter #390
-
I've tried several options to generate a LIST with Dataview using multi-value attributes in my YAML headers but DV does not seem to recognize them. User story: I would like to generate a list of all notes that reference a specific person that was in attendance. I use YAML front matter in my meeting notes with a key of "contact" that has a list of all people were present in the meeting. Here is some example text where I have tried to test every supported YAML list format (and some unsupported). I've tried multiple variations of quotes as well but without ever generating a list with Dataview
I've tried all of the below queries but they produce no results.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe contact, person, and person2 are correct YAML. The
The docs still call |
Beta Was this translation helpful? Give feedback.
I believe contact, person, and person2 are correct YAML. The
=
equality operator does not check if a YAML collection (what you called a multi-value attribute) contains a value. To check if a YAML collection contains exactly a value use the dataview functionecontains
(this used to be called justcontains
)The docs still call
econtains
by its old namecontains
but they still accurately describe the function. (contains
in the latest release does something slightly different)