* Converts a `value_query` in the above grammar, with the given path, to a predicate. */
| 114 | * Converts a `value_query` in the above grammar, with the given path, to a predicate. |
| 115 | */ |
| 116 | Reference<IPredicate> valueQueryToPredicate(bson::BSONObj const& query, std::string const& path) { |
| 117 | std::vector<Reference<IPredicate>> terms; |
| 118 | valueQueryToPredicates(query, path, terms); |
| 119 | return ref(new AndPredicate(terms)); |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Converts a mongo-like query document (query in the above grammar) into a corresponding |
no test coverage detected