ListCollections

    Retrieves information about collections (including collection-views) in a database.

    Mongo.ListCollections.swift:23
    struct ListCollections<Element> where Element : BSONDecodable, Element : Sendable

    ListCollections can return either collection names only (CollectionBinding) or full collection metadata (CollectionMetadata). The name-only mode requires less synchronization on the server-side.

    ListCollections has no single-batch mode, it only supports cursor iteration.

    ListCollections only supports filtering, it does not support sorting or projection.

    See: https://www.mongodb.com/docs/manual/reference/command/listCollections/

    See: https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst

    Other members in extension

    View members

    Hide members

    This section is hidden by default because it contains too many (66) members.

    Protocols

    Types

    Citizens in MongoQL

    Conformances

    Instance members

    Citizens in MongoQL

    where Element:BSONDecodable, Element:Sendable

    Conformances

    Types

    Typealiases

    Type members

    Instance members

    Instance features

    Citizens in MongoQL

    where Element == Mongo.CollectionBinding

    Type members

    Citizens in MongoQL

    where Element == Mongo.CollectionMetadata

    Type members

    Available in MongoDB

    where Element:BSONDecodable, Element:Sendable

    Conformances

    Instance members

    Type features