Skip to content

✨ feat(mq-lang): add collection(dir) builtin for cross-file markdown queries#1920

Merged
harehare merged 1 commit into
mainfrom
feat/collection-builtin
Jun 23, 2026
Merged

✨ feat(mq-lang): add collection(dir) builtin for cross-file markdown queries#1920
harehare merged 1 commit into
mainfrom
feat/collection-builtin

Conversation

@harehare

Copy link
Copy Markdown
Owner

Add a file-io-gated collection(dir) builtin that reads every Markdown file in a directory and returns an array of {path, title, frontmatter, content} dicts (frontmatter parsed, content as queryable Markdown nodes), enabling cross-file filter/sort/aggregate queries over a whole directory as a single dataset.

Close #1919

…queries

Add a file-io-gated `collection(dir)` builtin that reads every Markdown
file in a directory and returns an array of `{path, title, frontmatter,
content}` dicts (frontmatter parsed, content as queryable Markdown
nodes), enabling cross-file filter/sort/aggregate queries over a whole
directory as a single dataset.

Close #1919
@harehare harehare force-pushed the feat/collection-builtin branch from b5ba27b to 6f70cef Compare June 23, 2026 13:18
@codspeed-hq

codspeed-hq Bot commented Jun 23, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing feat/collection-builtin (6f70cef) with main (a7faa84)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (7a2ed1d) during the generation of this report, so a7faa84 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@harehare harehare merged commit eaaca7b into main Jun 23, 2026
11 checks passed
@harehare harehare deleted the feat/collection-builtin branch June 23, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add collection() builtin function for cross-file dataset queries

1 participant