What I’m trying to do
I am trying to get every note that has a link to a file in frontmatter (or inline metadata)
specifically i am trying to make a dataview script that will; get every note where it has link to the current file , Link HAS to be in hub:: <link>
and not anywhere else in the note.
Ex.
"
hub:: [[content hub]]
type:: video
source:: youtube
some video etc etc
"
and i want dataview to get this note when the script is in content hub note
but if the link was not in hub:: it has to not get the note
Things I have tried
i tried this script;
LIST rows.file.link
FROM ""
WHERE contains(file.hub, this.file.link)
GROUP BY type
i also tried
WHERE file.hub = this.file.link
and
WHERE contains(file.frontmatter.hub, this.file.link)
(with putting the hub in frontmatter) (also links in frontmatter have double quote around them etc idk about this one)