Skip to content

Commit cb20df6

Browse files
nathanosoaresrozza
authored andcommitted
Syntax fix and format (#404)
Missing parentheses and comma
1 parent 19ad9bf commit cb20df6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/reference/content/builders/filters.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,16 @@ This example creates a filter that selects all documents where the `price` field
8888
is equal to `true` or the `qty` field value is less than `20`:
8989

9090
```java
91-
and(or(eq("price", 0.99), eq("price", 1.99)
92-
or(eq("sale", true), lt("qty", 20)))
91+
and(
92+
or(
93+
eq("price", 0.99),
94+
eq("price", 1.99)
95+
),
96+
or(
97+
eq("sale", true),
98+
lt("qty", 20)
99+
)
100+
)
93101
```
94102

95103
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

Comments
 (0)