We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19ad9bf commit cb20df6Copy full SHA for cb20df6
docs/reference/content/builders/filters.md
@@ -88,8 +88,16 @@ This example creates a filter that selects all documents where the `price` field
88
is equal to `true` or the `qty` field value is less than `20`:
89
90
```java
91
-and(or(eq("price", 0.99), eq("price", 1.99)
92
- or(eq("sale", true), lt("qty", 20)))
+and(
+ or(
93
+ eq("price", 0.99),
94
+ eq("price", 1.99)
95
+ ),
96
97
+ eq("sale", true),
98
+ lt("qty", 20)
99
+ )
100
+)
101
```
102
103
This query cannot be constructed using an implicit and operation, because it uses the `$or` operator more than once. So it will render as:
0 commit comments