Projection

    A type respresents a MongoDB projection using a fluent syntax. This type is used as a parameter to the project method on MongoCollection.

    Projection.swift:14
    struct Projection

    Example:

    let collection: MongoCollection = ...
    let projection: Projection = [
      "name": .included, // explicitly include the field "name"
    ]

    Citizens in MongoKittenCore

    Conformances

    Types

    Type members

    Instance members