- Here is a general query to retrieve flashcards:
#+BEGIN_QUERY {:query [:find (pull ?b [*]) :where [?ref :block/name "card"] [?b :block/refs ?ref] ] } #+END_QUERY
- Could filter them by their properties.
- e.g. here by repetitions:
[?b :block/properties ?props] [(get ?props :card-repeats) ?repeats] [(> ?repeats 30)]
- Filtering by date is hard.
- e.g. here by repetitions:
- Could then delete the results with Mass delete query results
- It is relatively easy to adjust the code for other types of modifications, like changing property values.
- All the above are tested and working.
1 Like