Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"is involved with query" condition is broken #269

Open
mdroidian opened this issue Jun 25, 2024 · 0 comments
Open

"is involved with query" condition is broken #269

mdroidian opened this issue Jun 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mdroidian
Copy link
Collaborator

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.

@mdroidian mdroidian added the bug Something isn't working label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant