| |
read source history
= validate() =
----
[[MongoDB Driver Function Reference]]
Checks a collection’s data and indexes for correctness and returns the results.
More information can be found in the corresponding entry of the [[https://docs.mongodb.com/manual/reference/method/db.collection.validate/index.html|MongoDB Manual]].
[[[@cG
<collection>.validate([<full>])
]]]
**Arguments**
[[[@w
|@t0@r0@c0 <collection> | | The target collection. |
| <full> | | Determines if a full validation is requested. |
]]]
**Return Value**
[[[@w
Returns a result set (cursor).
]]]
**Example**
[[[@cw
db.employees.validate();
]]]
Validates the //employees// collection.
----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]
|