Details
-
Improvement
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
Description
On the Extended JSON page:
https://docs.mongodb.com/manual/reference/mongodb-extended-json/
Document that the BSON "Code" type is represented like:
{"$code": "... javascript ... "}
|
With optional scope:
{"$code": "... javascript ... ",
|
"$scope": {"variable1": "value1", "variable2": "value2"}
|
}
|
Attachments
Issue Links
- duplicates
-
DOCS-8113 MongoDB Extended JSON format for Code and CodeWScope is undocumented
-
- Closed
-
- related to
-
CDRIVER-1335 libbson does not properly serialize the Code type to JSON
-
- Closed
-