protocol PrimitiveEncodable
Primitive
func encodePrimitive() throws -> Primitive
AnyPrimitive
Array
When Element conforms to Encodable
Element
Encodable
Binary
Decimal128
Dictionary
When Key is String and Value conforms to Encodable
Key
String
Value
Document
EitherPrimitive
JavaScriptCode
JavaScriptCodeWithScope
MaxKey
MinKey
NSRegularExpression
Null
ObjectId
Optional
When Wrapped conforms to PrimitiveEncodable
Wrapped
PrimitiveEncodable
RegularExpression
Set
When Element conforms to Encodable and Element conforms to Hashable
Hashable
Timestamp
Reference
Projection.ProjectionExpression