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

Comment on: "manual/core/document-validation.txt"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • 0.25

    Description

      Add an example of using document validation with embedded documents.

      For example, a user might want to validate that a document looks like the following:

      {
         "_id": "125876",
         "name": "Anne",
         "phone": "+1 555 123 456",
         "address": {
            "city": "London",
            "street": "SW1A 0AA"
         },
         "status": "Complete"
      }
      

      Attachments

        Activity

          People

            isabella.siu@mongodb.com Isabella Siu (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 17 weeks, 5 days ago