Matt's Roof Garden

Powered by 🌱Roam Garden

Show last 5 edited pages - Radar (not working)

:q [:find (max 5 ?PageName)
   :where
   [?n :node/title ?PageName]]

:q [:find ?et ?t ?e ?o  :where 
    [?e :node/title "What People Are Saying"]
    [?x :block/order ?o] 
    [?e :edit/time ?et]
    [?x :block/string ?t] ]

:q [:find ?et ?id ?t 
    :where
    [?n :node/title ?t]
    [?n :edit/time ?et]
    [?n :block/uid ?id]
    [(sort ?t)]]
    (sort-by val > ?et )

:q [:find ?et ?id ?t 
    :in $ %
    (max 5 ?et)
    :where
    [?n :node/title ?t]
    [?n :edit/time ?et]
    [?n :block/uid ?id]]