javascript(_:)
Javascript code. The payload is a library type to permit efficient document traversal.
case javascript(UTF8View<ArraySlice<UInt8>>)
Javascript code. The payload is a library type to permit efficient document traversal.
case javascript(UTF8View<ArraySlice<UInt8>>)
s7BSONABI4BSONO8AnyValueO10javascriptyAeC8UTF8ViewVy_s10ArraySliceVys5UInt8VGGcAEmF
What are these?86W6X
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.
@frozen struct UTF8View<Bytes> where Bytes : BidirectionalCollection, Bytes.Element == UInt8
A BSON UTF-8 string. This string is allowed to contain null bytes.
@frozen struct ArraySlice<Element>
A slice of an Array
, ContiguousArray
, or ArraySlice
instance.
@frozen struct UInt8
An 8-bit unsigned integer value type.
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 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 min
The MongoDB min-key.
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.