this post was submitted on 17 Jun 2023
12 points (100.0% liked)
ObsidianMD
4118 readers
10 users here now
Unofficial Lemmy community for https://obsidian.md
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Do the variables in the single-line array need square brackets?
my understanding is that’s a required part of the YAML syntax, yes
Sorry. I just looked through the Dataview documentation and found that my inline data needed double-quote marks rather than brackets. Like this:
Writer:: "John Byrne", "Mike Mignola"
It works now and solves an issue I was having. Thank you.
ah yeah, I haven't used Dataview's inline data before. Glad you figured it out! :)
Thanks.
I tried it out and if it's placed in the front-matter at the top of the note like this it works:
Writer: [John Byrne, Mike Mignola]
Unfortunately, most of my data is in the body of the notes using double-colon syntax like this - and it doesn't get picked up by the Dataview query:
Writer:: [John Byrne, Mike Mignola]
Am I missing something?