| 136 | struct ExtValueOperatorNot { |
| 137 | static const char* name; |
| 138 | static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) { |
| 139 | return ref( |
| 140 | new NotPredicate(queryToPredicate(bson::BSONObjBuilder().appendAs(element, unencoded_path.c_str()).obj()))); |
| 141 | } |
| 142 | }; |
| 143 | REGISTER_VALUE_OPERATOR(ExtValueOperatorNot, "$not"); |
| 144 |
nothing calls this directly
no test coverage detected