ListCollectionsOptions

public struct ListCollectionsOptions : Encodable

Options to use when executing a listCollections command on a MongoDatabase.

  • A filter to match collections against.

    Declaration

    Swift

    public var filter: Document?
  • The batchSize for the returned cursor.

    Declaration

    Swift

    public var batchSize: Int?
  • Convenience initializer allowing any/all parameters to be omitted or optional

    Declaration

    Swift

    public init(batchSize: Int? = nil, filter: Document? = nil)