Ask questions on the official Q&A site at https://ask.datomic.com!
Christos 2020-12-08T08:23:32.088100Z

Hello, I have installed Datomic dev-local, and try to run a simple query on the “Movies” db but I get the error: :db.error/not-an-entity Unable to resolve entity: :release/name. Any ideas? Many thanks in advance

jcf 2020-12-08T08:25:53.089400Z

Have you transacted the “Movies” schema? If so, can you share the query you’re running?

Christos 2020-12-08T08:51:31.089600Z

I have not transacted the “Movies” schema! I will do that and retry :-)

Christos 2020-12-08T10:49:13.089800Z

@jcf: I have created a simple schema

(def sch [{:db/id "1"
           :db/ident       :name
           :db/cardinality :db.cardinality/one
           :db/valueType   :db.type/string
           :db/doc         "The name"}
and transacted it:
(d/transact conn {:tx-data sch})
then I add something:
(d/transact conn {:tx-data [{:db/id "1" 
                             :name "Christos"
and then I query:
(d/q {:query '[:find ?e ?name
               :where [?e :name ?name]]
      :args [db]})
and get the error: Execution error (ExceptionInfo) at datomic.core.error/raise (error.clj:55). :db.error/not-an-entity Unable to resolve entity: :name

favila 2020-12-08T13:46:44.090600Z

Is that db object from after your transactions?

Christos 2020-12-08T14:10:15.090800Z

No, it is not! Many thanks…:-)

Christos 2020-12-08T14:10:26.091Z

It works now 🙂