Hint

public enum Hint : Codable

An index to hint or force MongoDB to use when performing a query.

  • Specifies an index to use by its name.

    Declaration

    Swift

    case indexName(String)
  • Specifies an index to use by a specification Document containing the index key(s).

    Declaration

    Swift

    case indexSpec(Document)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws