AggregationOptions

public struct AggregationOptions : ExpressibleByDictionaryLiteral

An option to use for an aggregate operation

  • The fields to apply to the command document

    Declaration

    Swift

    public var fields = [String: Primitive]()
  • Allows initialization from a Dictionary Literal

    Declaration

    Swift

    public init(dictionaryLiteral elements: (String, Primitive)...)
  • Allows initialization like a Dictionary

    Declaration

    Swift

    public init(_ dictionary: [String: Primitive])
  • Explains the operation

    Declaration

    Swift

    public static func explain(_ explain: Bool = true) -> AggregationOptions
  • Allow using the disk

    Declaration

    Swift

    public static func allowDiskUse(_ allowed: Bool = true) -> AggregationOptions
  • Bypasses Document validation

    Declaration

    Swift

    public static func bypassDocumentValidation(_ allowed: Bool = true) -> AggregationOptions
  • Special options for the cursor

    Declaration

    Swift

    public static func cursorOptions(_ options: Document) -> AggregationOptions