Hi there!
I am slowly trying to remove dataview dependencies to bases. I have this query I use in all my notes, where I take links from the daily notes with the context as a list:
```dataview
LIST L.text
FROM “life/daily-notes”
FLATTEN file.lists AS L
WHERE contains(L.text, “[[” + this.file.name) AND contains(L.text, “]]”)
SORT file.day DESC
```
It produces something like this:
Of course, I can get files that link to the current file in a base:
```
views:
type: list
name: List
filters:
and:
- file.hasLink(this.file)
- file.folder == “life/daily-notes”
```
But I have no clue about how to do the rest; among others, I cannot find anything on flatten. Has anyone done something alike?
Thanks in advance
