struct

BSON::Code

Inherits Struct / Value / Object

JavaScript code.

Constructors

new(code : String, scope : BSON | Nil = nil)
Source

Instance methods

code
Source
scope
Source
to_canonical_extjson(builder : JSON::Builder)

Serialize to a canonical extended json representation.

NOTE: see https://github.com/mongodb/specifications/blob/master/source/extended-json.rst

Source
to_json(builder : JSON::Builder)
Source