Liking cljdoc? Tell your friends :D
Clojure only.

com.timezynk.mongo.schema


idclj

(id & :optional? <boolean>)

Schema type ObjectId.

ParameterDescription
: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)})
```
sourceraw docstring

stringclj

(string & :optional? <boolean>)

Schema type string.

ParameterDescription
: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)})
```
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close