min
The MongoDB min-key.
case min
The MongoDB min-key.
case min
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen enum AnyValue
Any BSON value.
@frozen enum BSON
The namespace for all BSON types.
case document(Document)
A general embedded document.
case list(List)
An embedded list-document.
case binary(BinaryView<ArraySlice<UInt8>>)
A binary array.
case bool(Bool)
A boolean.
case decimal128(Decimal128)
case double(Double)
A double-precision float.
case id(Identifier)
A MongoDB object reference.
case int32(Int32)
A 32-bit signed integer.
case int64(Int64)
A 64-bit signed integer.
case javascript(UTF8View<ArraySlice<UInt8>>)
Javascript code. The payload is a library type to permit efficient document traversal.
case javascriptScope(Document, UTF8View<ArraySlice<UInt8>>)
A javascript scope containing code. This variant is maintained for backward-compatibility with older versions of BSON and should not be generated. (Prefer javascript(_:)
.)
case max
The MongoDB max-key.
case millisecond(UnixMillisecond)
UTC milliseconds since the Unix epoch.
case null
An explicit null.
case pointer(UTF8View<ArraySlice<UInt8>>, Identifier)
A MongoDB database pointer. This variant is maintained for backward-compatibility with older versions of BSON and should not be generated. (Prefer id(_:)
.)
case regex(Regex)
A regex.
case string(UTF8View<ArraySlice<UInt8>>)
A UTF-8 string, possibly containing invalid code units. The payload is a library type to permit efficient document traversal.
case timestamp(Timestamp)
A 64-bit unsigned integer.