Skip to content

Commit 7052774

Browse files
authored
Removed extra brace from OR filter
1 parent b44bc08 commit 7052774

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

docs/filtering.rst

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -76,31 +76,29 @@ You can also use boolean combination of operations:
7676
"val":"%Amstrad%"
7777
},
7878
{
79-
"or": {
80-
[
81-
{
82-
"not": {
79+
"or": [
80+
{
81+
"not": {
82+
"name": "name",
83+
"op": "eq",
84+
"val":"John"
85+
}
86+
},
87+
{
88+
"and": [
89+
{
8390
"name": "name",
84-
"op": "eq",
85-
"val":"John"
91+
"op": "like",
92+
"val": "%Jim%"
93+
},
94+
{
95+
"name": "birth_date",
96+
"op": "gt",
97+
"val": "1990-01-01"
8698
}
87-
},
88-
{
89-
"and": [
90-
{
91-
"name": "name",
92-
"op": "like",
93-
"val": "%Jim%"
94-
},
95-
{
96-
"name": "birth_date",
97-
"op": "gt",
98-
"val": "1990-01-01"
99-
}
100-
]
101-
}
102-
]
103-
}
99+
]
100+
}
101+
]
104102
}
105103
] HTTP/1.1
106104
Accept: application/vnd.api+json

0 commit comments

Comments
 (0)