Javascript Query Syntax for filtering based on yaml metadata

What I’m trying to do

Hi Guys,

So I managed to query for files that has a ‘Favourite’ link in it via $=dv.list(dv.pages('[[Favourite]]').sort(f=>f.file.name,"desc").limit(4).file.link)

But I’m hoping to find out the syntax for querying and filtering based on yaml metadata.
eg. List out all the files where ‘Status’ field is 'Completed.

and separately also

where ‘Category’ field contains ‘Learning’ AND ‘Business’

Thanks in advance!

Hi Guys,

I’m also hoping to find out how to filter by dates that reaches today’s date.

Eg. To_Do_Date = date(Today)

Thanks in advance!