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

MongoDB Extended JSON documentation for DBRef is incomplete

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      https://docs.mongodb.com/manual/reference/mongodb-extended-json/#db-reference

      DBRef can be have a "$db" field:

      strict mode mongo shell mode
      { "$ref": "<name>", "$id": "<id>" } DBRef("<name>", "<id>")
      { "$ref": "<name>", "$id": "<id>", "$db": "<db>" } DBRef("<name>", "<id>", "<db>")

      https://github.com/mongodb/mongo/blob/master/src/mongo/dbtests/jsontests.cpp#L1252

      Attachments

        Activity

          People

            andrew.aldridge@mongodb.com Andrew Aldridge
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              45 weeks, 5 days ago