(each! ar & options)
Used with $addToSet operator and the $push operator, to add each element Options can be 3 '(position n)', '(slice n)' , '(sort :field1 :!field2)'
Used with $addToSet operator and the $push operator, to add each element Options can be 3 '(position n)', '(slice n)' , '(sort :field1 :!field2)'
(now-date! & args)
Call example All 3 first means date {$type 'date'} (now-date :field1 'date' :field1 true :field1 '' :field1 'timestamp')
Call example All 3 first means date {$type 'date'} (now-date :field1 'date' :field1 true :field1 '' :field1 'timestamp')
(remove! & args)
Simple member (remove! :ar1 (=? avalue)) Embeded (remove! :ar1 (=? :afield avalue)) Nested (this will remove a member from the ar2, based on creteria on ar2) (remove! :ar1 (elem-match? :ar2 (=? afield avalue))
Simple member (remove! :ar1 (=? avalue)) Embeded (remove! :ar1 (=? :afield avalue)) Nested (this will remove a member from the ar2, based on creteria on ar2) (remove! :ar1 (elem-match? :ar2 (=? afield avalue))
(unset! & args)
(unset 'field1' 'field2' ...)
(unset 'field1' 'field2' ...)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close