How to make this dataview query

I use this (pattern of a) query quite often to list all the ‘children’ pages, but not ‘parent’ pages:

LIST FROM [[Obsidian content creators]] AND !outgoing([[Obsidian content creators]])
SORT file.name ASC

I would love to have snippet that does the same, but now for any page. I tried:

LIST FROM this.file.link AND !outgoing(this.file.link)
SORT file.name ASC

But it results in a parsing failed error. Any help is appreciated!

You can’t use variables in FROM command.
If you want to target the links to/from the current page, you can use [[page]] or, in generic way, using [[]] (or [[#]]):

LIST
FROM [[]] AND !outgoing([[]])
SORT file.name ASC
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.