BSONCodeWithScope
public struct BSONCodeWithScope : Equatable, Hashable
A struct to represent BSON CodeWithScope.
-
A string containing Javascript code.
Declaration
Swift
public let code: String -
An optional scope
BSONDocumentcontaining a mapping of identifiers to values, representing the context in whichcodeshould be evaluated.Declaration
Swift
public let scope: BSONDocument -
Initializes a
BSONCodeWithScopewith an optional scope value.Declaration
Swift
public init(code: String, scope: BSONDocument)
View on GitHub
Install in Dash
BSONCodeWithScope Structure Reference