File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -573,13 +573,13 @@ Merge Strategies
573
573
Mongoid provides three merge strategies:
574
574
575
575
- **Override**: the new operator instance replaces any existing conditions on
576
- the same field using the same operator.
576
+ the same field using the same operator.
577
577
- **Intersect**: if there already is a condition using the same operator on the
578
- same field, the values of the existing condition are intersected with the
579
- values of the new condition and the result is stored as the operator value.
578
+ same field, the values of the existing condition are intersected with the
579
+ values of the new condition and the result is stored as the operator value.
580
580
- **Union**: if there already is a condition using the same operator on the
581
- same field, the values of the new condition are aded to the values of the
582
- exsting condition and the result is stored as the operator value.
581
+ same field, the values of the new condition are aded to the values of the
582
+ exsting condition and the result is stored as the operator value.
583
583
584
584
The following snippet demonstrates all of the strategies, using ``in`` as the
585
585
example operator:
You can’t perform that action at this time.
0 commit comments