[DOCS-1114] Sets are different than arrays, or will be : "reference/operator/addToSet.txt" Created: 12/Feb/13  Updated: 30/Oct/23  Resolved: 12/Feb/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-8512 support $slice/sort in $addToSet Closed
Participants:
Days since reply: 11 years, 1 week, 1 day ago

 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).



 Comments   
Comment by auto [ 12/Feb/13 ]

Author:

{u'date': u'2013-02-12T18:42:07Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1114: clarify assurances of $addToSet
Branch: master
https://github.com/mongodb/docs/commit/ce8d3eeef3c109eee96c82b10ffa0f7c277b2f33

Generated at Thu Feb 08 07:40:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.