Quote & Note Dataview Code Block

Quote (Atom)

dataview
TABLE WITHOUT ID
file.link AS "Quote",
page AS "Page #",
length(file.inlinks) AS "Links"
FROM "Vault/Atoms" and [ [ BOOK NAME ] ]

Note (Molecule)

dataview
TABLE WITHOUT ID
file.link AS "Note",
length(file.inlinks) AS "Links",
Atom
FROM "Vault/Molecules"
FLATTEN file.outlinks AS Atom
WHERE contains(Atom.Reference,[ [ BOOK NAME ] ])


to do: add WHERE dg-publish = true
fix links section

What I did that worked:
FLATTEN file.outlinks AS Atom
WHERE contains(Atom.Reference, Finding Flow)

I had to create a list of the links I included in the Molecule, flattening them as a term called "Atom". Then, I had to include a Where clause that looked at the "reference" property of each "Atom" to see if Finding Flow was included as a reference property.

Interesting that it pulled both Test Quotes in there

TABLE WITHOUT ID
file.link AS "Quote",
length(file.inlinks) AS "Links",
Atom
FROM "Vault/Molecules"
FLATTEN file.outlinks AS Atom
WHERE contains(Atom.Reference, Finding Flow)