Complete create

  • create
  • capped (Capped only)
  • timeseries
    • timeField
    • metaField
    • granularity
    • bucketMaxSpanSeconds
    • bucketRoundingSeconds
  • expireAfterSeconds (time series or clustered)
  • clusteredIndex
  • changeStreamPreAndPostImages
  • autoIndexId (deprecated)
  • size (Capped only)
  • max (Capped only)
  • storageEngine
  • validator
  • validationLevel
  • validationAction
  • indexOptionDefaults
  • viewOn (Views only)
  • pipeline (Views only)
  • collation (Views only)
  • writeConcern
  • encryptedFields
  • comment

https://www.mongodb.com/docs/manual/reference/command/create/

Edited by Ivan “CLOVIS” Canet