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

Sets are different than arrays, or will be : "reference/operator/addToSet.txt"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      We should note that $addToSet (and sets in general) are not ordered but just guarantee that there are no dups. We should note that the document will not nec. be put at the end, or in any specific place. This makes it a bit different than $push/$pushAll (the other array modifiers).

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 1 week, 1 day ago