Certainly a dumb question, but hopefully should clear things up.
I am following along https://docs.datomic.com/on-prem/getting-started/transact-schema.html, and the step to transact the schema, in this tutorial, is
user=> (d/transact conn {:tx-data movie-schema})
However, when I try this, I get
ClassCastException clojure.lang.PersistentArrayMap cannot be cast to java.util.List datomic.api/transact
Instead, when I just do
(d/transact conn schema)
it works for me. Is the tutorial missing some subtlety here? Am I missing something? (the only difference is that I'm using the Free version instead of the Starter Pro version).
Edit: the initial version of this post mentioned the schema, but this is generally true for just adding new facts too (i.e. using {:tx-data foo} doesn't work, but just using foo does).