Query

public struct Query: ExpressibleByDictionaryLiteral, ValueConvertible, ExpressibleByStringLiteral

A Query that consists of an AQT statement

  • Initializes this Query with a String literal for a text search

    Declaration

    Swift

    public init(stringLiteral value: String)
  • Initializes this Query with a String literal for a text search

    Declaration

    Swift

    public init(unicodeScalarLiteral value: String)
  • Initializes this Query with a String literal for a text search

    Declaration

    Swift

    public init(extendedGraphemeClusterLiteral value: String)
  • Returns the Document state of this Query

    Declaration

    Swift

    public func makeDocument() -> Document
  • The Document that can be sent to the MongoDB Server as a query/filter

    Declaration

    Swift

    public func makePrimitive() -> BSON.Primitive
  • Initializes an empty query, matching nothing

    Declaration

    Swift

    public init()
  • Creates a Query from a Dictionary Literal

    Declaration

    Swift

    public init(dictionaryLiteral elements: (String, BSON.Primitive?)...)
  • The Document that can be sent to the MongoDB Server as a query/filter

    Declaration

    Swift

    public var queryDocument: Document
  • aqt

    The AQT statement that’s used as a query/filter

    Declaration

    Swift

    public var aqt: AQT
  • Initializes a Query with an AQT filter

    Declaration

    Swift

    public init(aqt: AQT)
  • Initializes a Query from a Document and uses this Document as the Query

    Declaration

    Swift

    public init(_ document: Document)
  • Creates a textSearch for a specified string

    Declaration

    Swift

    public static func textSearch(forString string: String, language: String? = nil, caseSensitive: Bool = false, diacriticSensitive: Bool = false) -> Query