Dataview syntax for recently modified notes with frontmatter criteria

I’m trying to do something like Dataview list of 25 most recently modified files in vault but I only want the query to pull from notes that have a value in the YAML dg-publish = true.

This is my first time using Dataview, so I’m stumped! Thank you in advance!

EDIT: I solved this. Here’s what I came up with.

TABLE dateformat(file.mtime, "MM.dd.yyyy") AS "Last modified" 
FROM "" 
WHERE dg-publish=true
SORT file.mtime DESC 
LIMIT 10 ```

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