In order to use a little of PARA organization, I tag some pages with properties like
area:: [[Health]]
or
project:: [[Kitchen Remodeling 2022]]
Now, I wanted to have a single page where I would list all projects and areas that I have used over my graph. I don’t want the pages tagged with a specific area/project. It’s the other way around.
I’ve managed to to that using this query (for the areas):
it took a while to figure out how to use :result-transform. Almost all the examples I saw just ordered the results, and never transformed the data within.
I hope this helps anyone having trouble using the advanced query.
Thanks for the sharing!
Also bothered by lack of advanced queries documentation.
Do you have any idea if closure.core functions can be used in query? i experimented with select-keys, but failed to make it right. I find the select-keys from clojure.core - Clojure v1.11 API documentation
I will share with you what I currently use. I am also following PARA.
I have project pages that all start with namespace Project (e.g. Project/2023 Taxes).
Then I have areas that start with namespace Area (e.g. Area/Finances).
Projects have an area property (e.g area:: [[Area/Finances]]). Notes have a para property that can be a project or an area, but that’s not relevant for the query I will share below.
So the query I have will give me something like this: