I have searched quite a bit. I just can’t seem to find a function that takes the current file’s metadata as an input. I’ve tried a lot of variations of
I’m trying to create a table where I use the current file’s metadata fields as an input. So let’s say I have a field in my metadata that looks like this:
//—
date: 2022-11-06
food-type: Italian
—//
I want to create a dataview query that uses this file’s metadata field ‘food-type’ to bring back a query result from all other notes.
LIST
WHERE contains(food-type, this.file.food-type)
Output:
List of pages with Italian as food-type
- Lasagne
- Pizza
- Pasta alfredo