An interface describing the schema of documents in this collection, i.e. the keys and their allowed value type(s).
ReadonlyonThe property or properties to index. These may be key-paths delimited by ".". If multiple properties are indexed, the first will be its primary key, the others secondary keys; a query may use any prefix of the keys.
Optional ReadonlytypeThe type of index, either 'value' (the default) or 'array'.
Optional ReadonlyuniqueIf true, every document must have a unique value for this property. Any violation will cause a ConstraintError to be thrown when saving the document.
Configuration for a single index on a Collection; used in CollectionConfig.