While I have already successfully replaced most my dataview-queries with Bases (I personally prefer native functions aka core plugins over community ones), I noticed that I currently cannot access the number of incoming/outgoing links of a file.
This was quite a cool function in dataview where I could sort files by the number of links the file contained via this syntax:
length(file.inlinks) as "in", length(file.outlinks) as "out"
Another cool function in dataview was this code to display all files that link to a note but are not linked backwards: contains(this.file.inlinks, file.link) AND !contains(this.file.outlinks, file.link)
Proposed solution
I would love to have more information about the file such as the number of in-/outlinks available to us in Bases so that we can create even cooler Tables/Overviews!
Okay, so I managed to find a filter to get all the files that link to the current-file (the base is embedded in), but that are not linked back from the current file:
All good, don’t worry! There are two ways you can create a base - one is through the “UI” and the other is as a “Code-Block” (similar to how we used Dataview all the time).
The “Code” I provided is copied from a base-codeblock:
You can also simply paste the lines separately into the filter-UI of a Base by using the advanced formula editor:
Just make sure you select the All are true/None are true-Options to relate the filters:
Regarding file.links.length - this is just a property-formula:
Yes exactly - I have personally already replaced all my Dataview-Queries with Bases and this is the only thing missing for me - sadly I really like to see both the number of incoming and outgoing links to get an overview “how well connected” a note is already
Hopefully the Obsidian-Team can figure out a good (performant) way to implement this - other than that I really enjoy Bases and love the direction Obsidian is going with them!