(attr-add-defaults [k [attr :as v]] dfts)
adds defaults to a given schema property pair (base/attr-add-defaults [:person [{}]] []) => [:person [{}]]
(base/attr-add-defaults [:person [{}]] [{:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}]) => [:person [{:cardinality :one :type :string}]]
(base/attr-add-defaults [:person [{:cardinality :many :type :long}]] [{:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}]) => [:person [{:cardinality :many :type :long}]]
(base/attr-add-defaults [:person [{}]] [{:default false, :id :index} {:default false, :id :fulltext} {:default false, :id :noHistory} {:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}]) => [:person [{:index false :fulltext false :cardinality :one :noHistory false :type :string}]]
adds defaults to a given schema property pair (base/attr-add-defaults [:person [{}]] []) => [:person [{}]] (base/attr-add-defaults [:person [{}]] [{:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}]) => [:person [{:cardinality :one :type :string}]] (base/attr-add-defaults [:person [{:cardinality :many :type :long}]] [{:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}]) => [:person [{:cardinality :many :type :long}]] (base/attr-add-defaults [:person [{}]] [{:default false, :id :index} {:default false, :id :fulltext} {:default false, :id :noHistory} {:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}]) => [:person [{:index false :fulltext false :cardinality :one :noHistory false :type :string}]]
(attr-add-ident [k [attr :as v]])
adds the key of a pair as :ident to a schema property pair (base/attr-add-ident [:person [{}]]) => [:person [{:ident :person}]]
(base/attr-add-ident [:person/address [{}]]) => [:person/address [{:ident :person/address}]]
adds the key of a pair as :ident to a schema property pair (base/attr-add-ident [:person [{}]]) => [:person [{:ident :person}]] (base/attr-add-ident [:person/address [{}]]) => [:person/address [{:ident :person/address}]]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close