Document options monger.collection/ensure-index takes
This commit is contained in:
parent
723ac2503b
commit
f14227dbc0
1 changed files with 6 additions and 1 deletions
|
|
@ -454,7 +454,12 @@
|
||||||
|
|
||||||
(defn ensure-index
|
(defn ensure-index
|
||||||
"Creates an index on a set of fields, if one does not already exist.
|
"Creates an index on a set of fields, if one does not already exist.
|
||||||
This operation is optimized in the Java driver and is inexpensive in the case when an index already exists.
|
This operation is inexpensive in the case when an index already exists.
|
||||||
|
|
||||||
|
Options are:
|
||||||
|
|
||||||
|
:unique (boolean) to create a unique index
|
||||||
|
:name (string) to specify a custom index name and not rely on the generated one
|
||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue