(id & :optional? <boolean>)
Schema type ObjectId
.
Parameter | Description |
---|---|
:optional? | optional boolean Is the field optional? |
Examples
(create-collection! :users :schema {:id (id :optional? true)})
Schema type `ObjectId`. | Parameter | Description | | --- | --- | | `:optional?` | `optional boolean` Is the field optional? | **Examples** ```Clojure (create-collection! :users :schema {:id (id :optional? true)}) ```
(string & :optional? <boolean>)
Schema type string
.
Parameter | Description |
---|---|
:optional? | optional boolean Is the field optional? |
Examples
(create-collection! :users :schema {:name (string :optional? true)})
Schema type `string`. | Parameter | Description | | --- | --- | | `:optional?` | `optional boolean` Is the field optional? | **Examples** ```Clojure (create-collection! :users :schema {:name (string :optional? true)}) ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close