Fork me on GitHub
#xtdb
<
2023-05-09
>
Sagar Vrajalal12:05:06

Maybe a weird question but, can I print or debug intermediate bindings in queries?

{:find [x]
 :in [m another-m]
 :where [[(keys m) ?m-keys]
         [(select-keys another-m ?m-keys) ?another-m]]}
I'd like to inspect ?another-m here.

tatut04:05:23

you could call println?

refset08:05:55

You can introduce your own function that calls println and then returns true to use as a no-op predicate