mdelobelle / metadatamenu

For data management enthusiasts : type and manage the metadata of your notes.
https://mdelobelle.github.io/metadatamenu
MIT License
478 stars 27 forks source link

Why do lookup fields require a related field? #602

Open WhiskeyJack96 opened 4 months ago

WhiskeyJack96 commented 4 months ago

When using a DV lookup why do I need a reference field back to the source file instead of having the dv query return the filtered list of applicable pages?

For example with dataview dv.pages(dv.current().file.link.markdown()).file.link returns the list of files linking to the current file.

I ask because I found it confusing and harder to work with that the pages query needed to return pages with a property that was a link to the current file, instead of for example being able to do something more like dv.pages("'journals/'").filter(x => x.someProperty == "someValue") and having that "just work"