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

Validate modifiers for updates, error if invalid.

    • Query
    • Fully Compatible
    • ALL

      For modifiers like $addToSet/$inc/$push/etc if there are invalid options ($fields included) then generate an error.

      > db.c.update({}, {$addToSet:{a: {$foo:1, $each :[], $sort:..., $slice:... }}})
      

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: