Welcome! Please see the About page for a little more info on how this works.

0 votes
in On-Prem by

I am having an issue with a query and wild card patterns:
(d/q {:query '[:find (pull ?page pattern)

                         :in $ ?id pattern
                         :where
                         [?page :page/id ?id]]
                  :args [(d/db conn)
                         id
                         '[*]]})

It gives me an error:
Attribute identifier clojure.core/* of class: class java.lang.String does not start with a colon
Any idea why it doesn't work? I also tried adding the pattern directly to the pull expression, but I get the exact same issue

1 Answer

0 votes
by
 
Best answer

It seems that the documentation is not clear on this, and the problem is related with the fact that you need to use [:*] in these situations, instead of the documented '[*].

...