Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8119

Document "Code" BSON type's extended JSON representation

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • manual
    • 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

        Activity

          People

            jonathan.destefano@mongodb.com Jonathan DeStefano
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago