IndexHint
public enum IndexHint : Codable, ExpressibleByStringLiteral, ExpressibleByDictionaryLiteral
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
BSONDocumentcontaining the index key(s).Declaration
Swift
case indexSpec(BSONDocument) -
Declaration
Swift
public func encode(to encoder: Encoder) throws -
Declaration
Swift
public init(stringLiteral value: StringLiteralType) -
Declaration
Swift
public init(dictionaryLiteral keyValuePairs: (String, BSON)...) -
Declaration
Swift
public init(from decoder: Decoder) throws
View on GitHub
Install in Dash
IndexHint Enumeration Reference