Files
LogSeqDB/logseq/.recycle/pages_Birthdays query.sync-conflict-20250817-085608-UULL5XD.md
2025-12-11 06:26:12 -08:00

1.6 KiB

- Every block with property birthday
- #+BEGIN_QUERY 
  {:query [:find (pull ?b [*]) :where [?b :block/properties ?properties] [(get ?properties :birthday) ?birthday]
  
  ]} 
  #+END_QUERY
  • Every page with the birthday block
    • #+BEGIN_QUERY {:query [:find (pull ?page [*]) :where [?b :block/properties ?properties] [(get ?properties :birthday) ?birthday] [?b :block/left ?page] ]} #+END_QUERY
  • Every page with the birthday block filtering by date range (today and 30d from now)
    • #+BEGIN_QUERY {:query [:find (pull ?page [*]) :in $ ?start ?next :where [?b :block/properties ?properties] [(get ?properties :birthday) ?birthday] [?b :block/left ?page] [?b :block/ref-pages ?p] [?p :block/journal? true] [?p :block/journal-day ?d] [(< ?d ?next)] [(>= ?d ?start)] ] :inputs [:today :30d-after] } #+END_QUERY
  • Every page with the birthday block filtering by date range selecting columns
  • query-table:: #{"+BEGIN_QUERY"} query-properties:: [:page :birthday] #+BEGIN_QUERY {:query [:find (pull ?page [*]) :in $ ?start ?next :where [?b :block/properties ?properties] [(get ?properties :birthday) ?birthday] [?b :block/left ?page] [?b :block/ref-pages ?p] [?p :block/journal? true] [?p :block/journal-day ?d] [(< ?d ?next)] [(>= ?d ?start)] ] :table-view? true :inputs [:today :30d-after] } #+END_QUERY
  • #+BEGIN_QUERY { :query [:find ?birthday ?page :in $ ?start ?next :where [?b :block/properties ?properties] [(get ?properties :birthday) ?birthday] [?b :block/left ?page] [?b :block/ref-pages ?p] [?p :block/journal? true] [?p :block/journal-day ?d] [(< ?d ?next)] [(>= ?d ?start)]] :table-view? true :inputs [:today :30d-after]} #+END_QUERY