CollectionMetadata
public struct CollectionMetadata : CodableA structure representing metadata for a collection in the database.
This metadata includes the collection’s name, the indexes associated with it, and the partition key used for organizing the data.
- Properties:
- name: The name of the collection.
- indexes: An array of strings representing the indexes defined for the collection.
- partitionKey: The key used to partition the data within the collection.
- 
                  
                  Undocumented DeclarationSwift public let name: String
- 
                  
                  Undocumented DeclarationSwift public let indexes: [String]
- 
                  
                  Undocumented DeclarationSwift public let partitionKey: String
- 
                  
                  Initializes a new instance of DocumentCollection.DeclarationSwift public init(name: String, indexes: [String] = [], partitionKey: String)ParametersnameThe name of the collection. indexesAn optional array of index names to be used in the collection. Defaults to an empty array. partitionKeyThe key used to partition the collection. 
 View on GitHub
View on GitHub