Skip to content

Commit f28e6ee

Browse files
chore: make prettier happy
1 parent 23cbda1 commit f28e6ee

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

packages/querytranslator/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ mongo
175175
- matching objects in an array (e.g. `{ "an-array": ["a-string"] }` requires `{"an-array": "a-string"}` (if you want to search for a single string) or `{"an-array": {"$in": ["string-1", "string-2"]}` (if you want to search for one of multiple strings) for MongoDB and `{"an-array": {"$contains": "a-string"}}` (if you want to search for a single string) or `{"an-array": {"$containsAny": ["string-1", "string-2]}}` (if you want to search for one of multiple strings) for LokiJS)
176176

177177
The mongodb parser therefore will
178-
179178
- accept `$contains` and rewrite `{"an-array": {"$contains": "a-string"}}` to `{"an-array": "a-string"}`
180179
- accept `$containsAny` and rewrite `{"an-array": {"$containsAny": ["string-1", "string-2]}}` to `{"an-array": {"$in": ["string-1", "string-2]}}`
181180
- accept `$containsNone` and rewrite `{"an-array": {"$containsNone": ["string-1", "string-2]}}` to `{"an-array": {"$nin": ["string-1", "string-2]}}`

0 commit comments

Comments
 (0)