AnyKeyPath
Mongo.AnyKeyPath.swift:6@frozen struct AnyKeyPath
@frozen struct AnyKeyPath
import Mongo
A single-type module that declares the Mongo
namespace.
import MongoABI
enum Mongo
protocol MasterCodingDelta<Model> : BSONDecodable
A master coding delta type is like a MasterCodingModel
, but it has slightly different implied constraints, because you generally only ever decode a delta you receive from elsewhere.
protocol MasterCodingModel<CodingKey>
A type that serves as a master coding model for a type of document in a MongoDB collection.
@frozen struct Collection
@frozen struct Database
@frozen struct Namespaced<Name> where Name : LosslessStringConvertible
A MongoDB compound namespace. Create a namespace using the Mongo.Database.|(_:_:)
operator.
@frozen enum OutlineType
@frozen struct OutlineVector
@frozen struct Variable<T>
protocol BSONEncodable
A type that can be encoded to a BSON variant value.
protocol BSONStringEncodable : BSONEncodable
A type that can be encoded to a BSON UTF-8 string. This protocol exists to allow types that also conform to LosslessStringConvertible
to opt-in to automatic BSONEncodable
conformance as well.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol ExpressibleByExtendedGraphemeClusterLiteral : ExpressibleByUnicodeScalarLiteral
A type that can be initialized with a string literal containing a single extended grapheme cluster.
protocol ExpressibleByStringLiteral : ExpressibleByExtendedGraphemeClusterLiteral
A type that can be initialized with a string literal.
protocol ExpressibleByUnicodeScalarLiteral
A type that can be initialized with a string literal containing a single Unicode scalar value.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init(rawValue: String)
See rawValue
.
init(stringLiteral: String)
var description: String { get }
var rawValue: String { get }
The key path stem, which is the entire key path minus the leading $
character that would normally appear when encoding the key path in an expression.
var stem: BSON.Key
static func / (self: Self, next: Self) -> Mongo.AnyKeyPath
Creates a key path by joining two key paths with a .
character.
init(extendedGraphemeClusterLiteral value: Self.StringLiteralType)
init(unicodeScalarLiteral value: Self.ExtendedGraphemeClusterLiteralType)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func encode(to field: inout BSON.FieldEncoder)
Encodes the description
of this instance as a BSON UTF-8 string.
func hash(into hasher: inout Hasher)
import MongoBuiltins
protocol _MongoExpressionRestrictedEncodable : BSONEncodable
This protocol provides diagnostics to help you avoid common mistakes, such as using keypaths or expression variables at the top-level of a Mongo.PredicateDocument
.