| 105 | struct ExtValueOperatorNe { |
| 106 | static const char* name; |
| 107 | static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) { |
| 108 | // We can do this *despite* Mongo array semantics, because those semantics inconsistently treat a |
| 109 | // $ne like a $not: {path: element}. |
| 110 | return ref(new NotPredicate(eq_predicate(element, unencoded_path))); |
| 111 | } |
| 112 | }; |
| 113 | REGISTER_VALUE_OPERATOR(ExtValueOperatorNe, "$ne"); |
| 114 |
nothing calls this directly
no test coverage detected