How to list block ids and block uuids?

I want to get a table of block ids and their UUIDs.

I used the receipts page by @Siferiax from here:

My query looks like this:

  :title "Block and their UUIDs"
  :query [
    :find ?b ?u
    :keys c1 c2
      [?b :block/uuid ?u]
  :view (fn [rows] [
    :table [
      :thead [
          [:th "block"]
          [:th "uuid"]
    ] [
      :tbody (for [r rows] [
          [:td (get-in r [:c1])]
          [:td (get-in r [:c2])]

For some reason it results to a render error:


What I do wrong folks?

  • Like in the other case, :block/uuid is not a proper string.
  • Wrap it inside (str), i.e.: (str (get-in r [:c2]))
1 Like