RoamJS / query-builder

https://roamjs.com/extensions/query-builder
MIT License
20 stars 5 forks source link

"is involved with query" condition is broken #269

Open mdroidian opened 2 months ago

mdroidian commented 2 months ago

It is looking for query rather than scratch https://github.com/RoamJS/query-builder/blob/main/src/utils/registerDiscourseDatalogTranslators.ts#L127

changing it to scratch returns the proper conditions/returnNode but results in

Error from Roam: Rule variables should be distinct

image

[:find
  (pull ?node [:block/string :node/title :block/uid])
  (pull ?node [:block/uid])
:where
  [?node :node/title "edited data"]
  [?node :block/children ?c]
  (or-join [?node ?node]
    (and
      [?node :block/uid ?node-Uid]
      [?node :block/uid ?node-Uid]
    ))
]

I'm not sure what the query should be exactly, requires more digging.