Schemas are represented as EDN maps. See an example or the schema spec.
:title a string:version a string:include an array of pathnames to schemas to merge in:kinds a map of kind names (keywords) to kind definitions (see below):enums A map of enum names (keywords) to sequence of enum values (also keywords, generally namespaced)A kind definition is a map with attributes:
:fields: a map of field names (keywords) to field definitions:description a stringA field definition is a map with attributes:
:type can be:{:* <type>} (defines a Datomic homogenous tuple)
Default is :string
-:doc a string
-:cardinality Either :one (default) or :many:unique? Either :identity or :value, see Datomic doc for details.
-:unique-id (deprecated) true means the same as :unique :identity:attribute the datomic or sparql attribute corresponding to the fieldThe defined primitives are #{:string :boolean :float :double :long :bigint :bigdec :instant :keyword :uuid}.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |