Operatorswift-mongodb 0.27.0BSONDecoding->BSONABI
??(_:_:)
BSON.OptionalDecoder.swift:26static func ?? (lhs: `Self`, rhs: @autoclosure () -> `Self`) -> BSON.OptionalDecoder<Key>
Other members in extension
Instance members
func decode(
) throws -> BSON.AnyValue Gets the value of this key, throwing a
BSON.DocumentKeyError
if it is nil. This is a distinct condition from an explicitnull
value, which will be returned without throwing an error.func decode<T>(with: (BSON.AnyValue) throws -> T
) throws -> T Decodes the value of this implicit field with the given decoder, throwing a
BSON.DocumentKeyError
if it does not exist. Throws aBSON.DecodingError
wrapping the underlying error if decoding fails.