-
I am trying to replicate the following query in
Unfortunately, I am running into issues when trying to retrieve linked notes from the query results. To clarify,
Conceptually, these notes inherit properties from their parent, which in turn are structured as follows:
When I use query language, dataview has no problem traversing to the parent via The parent isn't directly referenced from the current note in which the code is run, so I don't think I can use
When I print
etc. But when I try something like: I've also tried My sincere thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Right, I have figured it out. In my variety pages, I was using an alias to refer to the parent link. For the curious among you, the alias was On hindsight, seeing something like this would have been really helpful:
It's possible that something like this already exists in the console and I am just not experienced enough to see it. After several dead ends, I eventually started testing by running Interestingly, the dataview TL;DR: if |
Beta Was this translation helpful? Give feedback.
Right, I have figured it out.
In my variety pages, I was using an alias to refer to the parent link. For the curious among you, the alias was
"[[Tomatoes]]"
, and the source file was calledTomato.md
. Dataviewjs was unable to resolve this link when querying for properties of theTomato.md
page (e.g.dv.page("Tomatoes").file.name
), causing the entire array and script to crash withTypeError undefined
. Simply runningdv.paragraph(dv.page("beans"))
rendered the underlying pages (except tomatoes) fine, further hiding the problem.On hindsight, seeing something like this would have been really helpful:
It's possible that something like this already exists in the console and I a…