Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30034

Create a $_internalSchemaMatchArrayElement MatchExpression

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.12
    • None
    • Querying
    • None
    • Fully Compatible
    • Query 2017-07-31, Query 2017-08-21

    Description

      Proposed Syntax

      {
          <path>: {
              $_internalSchemaMatchArrayElement: {
                  index: <integer>,
                  namePlaceholder: "i",
                  expression: <MatchExpression>
              }
          }
      }
      

      $_internalSchemaMatchArrayElement matches the array at <path> if the element at index index matches the expression. There is no match if <path> is not an array or if it is an array with insufficient elements.

      Attachments

        Activity

          People

            kyle.suarez@mongodb.com Kyle Suarez
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: