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

Query does not work if (>= (count inputs) 8) #8

Open
ribelo opened this issue Apr 22, 2020 · 0 comments
Open

Query does not work if (>= (count inputs) 8) #8

ribelo opened this issue Apr 22, 2020 · 0 comments

Comments

@ribelo
Copy link

ribelo commented Apr 22, 2020

Code to reproduce the behavior:

(let [query '[:find [?e ...]
              :in $ ?a ?s ?d ?f ?g ?h ?j ?k
              :where [?e]]
      pre-q (partial posh.reagent/q query @re-posh.db/store)
      vars  [:a :s :d :f :g :h :j :k]]
    (apply pre-q vars))

;;=> Error: :k is not ISeqable

If we use datascript directly, it works

(let [query '[:find [?e ...]
              :in $ ?a ?s ?d ?f ?g ?h ?j ?k
              :where [?e]]
      pre-q (partial d/q query @@re-posh.db/store)
      vars  [:a :s :d :f :g :h :j :k]]
    (apply pre-q vars))

;;=> [1 2 3 4 5 6 7 8 9 10] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant