…or, cleanup whitespace.
…a new or create. Fixes #1524
- This adds some memory overhead since the entire results must come into memory instead of using the cursor, but eliminates a database call that could potentially return incorrect results.
…is, no need to double test
- If items have only been added to the array, it performs a $pushAll. If items have only been removed, it performs a $pullAll. If both additions and removals have occurred it performs a $set to avoid conflicting mods. - Fixes #1337.