Calculation

public struct Calculation : Codable, Equatable

Calculation.

Enums with an associated value of Calculation: QueryAggregation

  • The type of aggregation command used. For example: term, filter, max, min, etc.

    Declaration

    Swift

    public var type: String?
  • Array of aggregation results.

    Declaration

    Swift

    public var results: [AggregationResult]?
  • Number of matching results.

    Declaration

    Swift

    public var matchingResults: Int?
  • Aggregations returned by Discovery.

    Declaration

    Swift

    public var aggregations: [QueryAggregation]?
  • The field where the aggregation is located in the document.

    Declaration

    Swift

    public var field: String?
  • Value of the aggregation.

    Declaration

    Swift

    public var value: Double?