Dataview query property equals link not working but contains work

What I’m trying to do

I have a note where I want to list all notes that link to this one but only if they are of a specific property value.

Things I have tried

This query works

TABLE WITHOUT id
	file.link as Title,
	speaker as Speaker
FROM [[]]
WHERE contains(category, [[Conference sessions]])

However, I want to use “=” and also understand why “=” in the way I used it does not work.

I tried

TABLE WITHOUT id
	file.link as Title,
	speaker as Speaker
FROM [[]]
WHERE category = "[[Conference sessions]]"

and

TABLE WITHOUT id
	file.link as Title,
	speaker as Speaker
FROM [[]]
WHERE category = [[Conference sessions]]

I found the solution myself after digging deeper into the documentation. Basically, using an equal sign in JavaScript is used to compare literals which category and my link aren’t. They are of type linke which is an Object. In Dataview one needs to use contains to compare the value of an object (Functions - Dataview).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.