| 682 | struct ExtUpdateOperatorPullAll { |
| 683 | static const char* name; |
| 684 | static Future<Void> execute(Reference<IReadWriteContext> cx, |
| 685 | StringRef const& path, |
| 686 | bson::BSONElement const& element) { |
| 687 | std::vector<DataValue> all; |
| 688 | std::vector<bson::BSONElement> elems = element.Array(); |
| 689 | for (auto e : elems) { |
| 690 | all.push_back(fullValueFromElement(e)); |
| 691 | } |
| 692 | std::set<DataValue> uniques(all.begin(), all.end()); |
| 693 | return doPullActor(cx, path, uniques); |
| 694 | } |
| 695 | }; |
| 696 | REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorPullAll, "$pullAll"); |
| 697 |
nothing calls this directly
no test coverage detected