Fork me on GitHub
#datomic
<
2020-04-18
>
drewverlee21:04:06

I tried running something very similar to this example:

;; query
[:find [?name ...]
 :in $ ?artist
 :where [?release :release/name ?name]
        [?release :release/artists ?artist]]
and results in a error:
Only find-rel elements are allowed in client find-spec, see
   
   {:cognitect.anomalies/category :cognitect.anomalies/incorrect,
    :cognitect.anomalies/message
    "Only find-rel elements are allowed in client find-spec, see ",
 
Which is confusing to me because thats not what the grammer implies to me
find-spec                  = ':find' (find-rel | find-coll | find-tuple | find-scalar)
find-rel                   = find-elem+
find-coll                  = [find-elem '...']

drewverlee21:04:35

ok, i think its linking to the wrong docs. This grammar, specific to the cloud, does say that: https://docs.datomic.com/cloud/query/query-data-reference.html

drewverlee21:04:46

This is double confusing because the example is from the offical docs: https://docs.datomic.com/cloud/query/query-executing.html

marshall21:04:53

Client does not permit find specifications other than relation.

marshall21:04:01

Ill fix the example