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

Explain how to find existing `validator` rules on a collection

    XMLWordPrintableJSON

Details

    Description

      Description

      The Schema Validation docs explain how to create a schema, and actually links to db.getCollectionInfos() but it never explicitly says something like:

      To see the existing/current validator definition, use db.getCollectionInfos()

      I think this would be useful for discoverability.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

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