Allows users to specify a default configuration for indexes when creating
a collection.
The indexOptionDefaults option accepts a storageEngine document, which should take the following form:
The maximum number of documents allowed in the capped collection.
The size limit takes precedence over this limit. If a capped collection
reaches the size limit before it reaches the maximum number of documents,
MongoDB removes old documents.
If you prefer to use the max limit, ensure that the size limit,
which is required for a capped collection, is sufficient to contain
the maximum number of documents.
An array that consists of the aggregation pipeline stage(s).
create creates the view by applying the specified pipeline to the viewOn
collection or view.
Specify a maximum size in bytes for a capped collection.
Once a capped collection reaches its maximum size,
MongoDB removes the older documents to make space for the new documents.
The size field is required for capped collections and ignored for other
collections. (ex. for 60KB, 60 * 1024)
Available for the WiredTiger storage engine only.
Allows users to specify configuration to the storage engine on a
per-collection basis when creating a collection.
The value of the storageEngine option should take the following form:
The name of the source collection or view from which to create the view.
The name is not the full namespace of the collection or view;
i.e. does not include the database name and implies the same database as
the view to create.
You must create views in the same database as the source collection.