DataviewJS - How to use .Where to compare metadata's link field( field :: [[TypeName]]) ? #1258
-
I want to use some field to define file Type like NoteType:: [[Data]] or Type:: [[Task]] and I don't know how to compare these field. these way I was tried: dv.pages("[[Some Project]]").where( t =>
t.Type == "[[Task]]"
t.Type == dv.page("Task");
dv.equal(t.Type, dv.page("Task")))
) Sadly,they were not working. I'm sure Task file is the same file. Request experiencer save my day, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What's the overall use case/query that you're trying to do? As for an actual answer, wikilinks are actually |
Beta Was this translation helpful? Give feedback.
What's the overall use case/query that you're trying to do?
As for an actual answer, wikilinks are actually
Link
objects in DV, like the one in.file.link
. You can compare those viadv.equal
."[[stuff]]"
is just a string which is why comparisons fail.