Take a single string argument, source, which is the same form as a query language source. Return a data array of page objects, which are plain objects with all of the page fields as values.
dv.pages() => all pages in your vaultdv.pages("#books") => all pages with tag 'books'dv.pages('"folder"') => all pages from folder "folder"dv.pages("#yes or -#no") => all pages with tag #yes, or which DON'T have tag #nodv.pages('"folder" or #tag') => all pages with tag #tag, or from folder "folder"
Note that folders need to be double-quoted inside the string (i.e., dv.pages("folder") does not work, but dv.pages('"folder"') does) - this is to exactly match how sources are written in the query language.