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

[: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.
It is looking for
queryrather thanscratchhttps://github.com/RoamJS/query-builder/blob/main/src/utils/registerDiscourseDatalogTranslators.ts#L127
changing it to
scratchreturns the properconditions/returnNodebut results inI'm not sure what the query should be exactly, requires more digging.