Ah ok. I don’t use the so-called inline fields because they make typography look wrong and are complicated to handle and non-standard. So I can’t tell you if that could work. I suppose not, because I assume those are also handled by a YAML parser.
One reason for that syntax being so hard to use (with YAML, while being easy for humans) is that the “wikilinks” appear to a YAML parser as an “array within an array”.
yes. the goal is to be able to query for files which have either [[link1]] or [[link2]] associated with field1.
Your comment about YAML parsing, led me to try enclosing the entire line in double-quotes. Which did work. However, it’s odd to read the document that way so I’m hoping there’s a better option
# Test Dataview Inline Links
field1:: [[link1]], [[link2]]
field2:: #testtag
field3:: a, b
`=this.field1`
`=this.field3`
Does _not_ work:
```dataview
table field1 from ""
where contains(field1, "[[link1]]")
```
**Works:**
```dataview
table field1 from ""
where contains(field1, [[link1]])
```
Be warned that if anything else is on the links line, like an external link
Struggling with this as well. Appreciate these examples, but I can’t get either of these approaches to work for me (query returned 0 results) when my field just has one value … eg. themes:: [[Device Quality]] … 0 results
I tried faking making a list … themes:: [[Device Quality]], dummy… and it works using either contains(themes, "[[Device Quality]]") or contains(themes, "Device Quality") or contains(themes, this.file.name)
… but NOT for the link directly as in contains(themes, [[Device Quality]]).
The more I play around, I seem to be stumped on the singular item (non-list) field value when it is a link specifically.