BSONCode
public struct BSONCode : BSONValue, Equatable, Codable, Hashable
A struct to represent the BSON Code type.
-
A string containing Javascript code.
Declaration
Swift
public let code: String
-
Initializes a
BSONCode
with an optional scope value.Declaration
Swift
public init(code: String)
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to: Encoder) throws