Utilizing Dataview Queries for Nested Frontmatter YML Properties

Hello everyone,

I’ve been delving into the world of Dataview, attempting to extract information from nested metadata within the frontmatter. After some exploration, I’ve successfully cracked the code.

Let’s take a look at my frontmatter:

My challenge was to query ENV_ACTIVE = true

list
FROM ""
WHERE contains(file.tags, "#status/develop")
WHERE contains(file.tags, "#area/work/firepress/client")
WHERE fp.TPL_VERSION = "V4_2023_10_13"
WHERE fp.ENV_ACTIVE = true
WHERE !contains(file.name, "hello")
WHERE !contains(file.folder, "_cards/_templates")
SORT file.mtime ASC  
LIMIT 99

to exclude:

WHERE fp.ENV_ACTIVE != true

Enjoy!

1 Like