create_collection
Creates a MongoDB collection or view with custom options like schema validators, capped size, time series, or view pipelines for tailored data storage.
Instructions
Create a collection or view. options are passed to the 'create' command, e.g. {"validator": {"$jsonSchema": {...}}}, {"capped": true, "size": 1048576}, {"timeseries": {"timeField": "ts"}}, {"viewOn": "orders", "pipeline": [...]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| options | No | ||
| database | No | ||
| connection | No |