size property

int? size
finalinherited

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)

Implementation

final int? size;