Advanced queries - result-transform and view

Actually most people don’t even touch them, because they are hard (in multiple ways).

There is no detailed documentation for advanced queries, much less for :view and :result-transform .

  • They both:
    • are provided with the results of the previous stage
    • process them with clojurescript
    • pass their own results to the next stage
      • here is the order: :query:result-transform:view → render
  • What they need:
    • Some programming knowledge
      • of the functional paradigm
    • Much reading of examples found in the community
      • Thankfully, plenty of material has been gradually accumulated
        • but it is not organized
    • A lot of practice
      • It is hard to even make them work
        • No mistakes are tolerated
    • Tones of patience
      • It is even harder to get what you want
        • There is no intuitive debugging
  • In other words:
    • they are not for everyone
    • although they are powerful
      • they can do things that are impossible without code
        • Unfortunately, they don’t currently provide the full library of functions.
1 Like