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

Comment on: "manual/tutorial/unique-constraints-on-arbitrary-fields.txt"

    XMLWordPrintableJSON

Details

    Description

      I think you have an error in the example you give at the https://docs.mongodb.com/manual/tutorial/unique-constraints-on-arbitrary-fields page.

      Instead of:

      proxy.insertOne({
         "_id" : primary_id
         "email" : "example@example.net"
      })
      

      there should be:

      proxy.insertOne({
         "parent_id" : primary_id
         "email" : "example@example.net"
      })
      

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago