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

0 votes
in Cloud by

What “kind” of content can the Datom value have?

Beyond a simple string like “pizza”, can the value be an entity id?

In the product docs there’s also “:green” as the value, what is that? Sorry, I’m not even sure what the colon means…

1 Answer

0 votes
by

The value of any given attribute is determined by the schema definition for that attribute. The valid types for an attribute can be found here.

A value can certainly be an entity id. You would expect :db.type/ref to have a value referencing another entity.

:green in Clojure is a keyword

Welcome to the Datomic Knowledgebase, where you can make features requests, ask questions and receive answers from other members of the community.
...