Dataview - how check if metadata equal is current file name

Hello. I have a two entities - books and notes from books.

In notes, I use metadata


Book: “[[Book name]]”


then I use query in Book:

list from "notes" where Book=[[Book name]]

and It works. But I want to create a common template for books and try to use filename in query:

where Book=this.file.name - don’t work
where Book=[[this.file.name]] - don’t work

It is possible - use the file properties in dataview queries?

Thanks!

1 Like

WHERE Book = this.file.link

[[Book name]] is a link; file.name is a string; file.link is a link

3 Likes

Thank you very much! It works)

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