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