Skip to content

Commit f48c18d

Browse files
authored
Explain match types is and nis better
1 parent 2637fd8 commit f48c18d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ NB: This transform is CPU and memory intensive and can also be executed client-s
170170

171171
### List + Filter
172172

173-
Search is implemented with the "filter" parameter. You need to specify the column name, a comma, the match type, another commma and the value you want to filter on. These are supported match types:
173+
Search is implemented with the "filter" parameter. You need to specify the column name, a comma, the match type, another commma and the value or values you want to filter on. These are supported match types:
174174

175175
- cs: contain string (string contains value)
176176
- sw: start with (string starts with value)
@@ -182,7 +182,7 @@ Search is implemented with the "filter" parameter. You need to specify the colum
182182
- gt: greater than (number is higher than value)
183183
- bt: between (number is between two comma separated values)
184184
- in: in (number or string is in comma separated list of values)
185-
- is: is null (field contains "NULL" value)
185+
- is: is null (field contains "NULL" value, does not need value specified)
186186

187187
You can negate all filters by prepending a 'n' character, so that 'eq' becomes 'neq'.
188188

@@ -192,6 +192,8 @@ GET http://localhost/api.php/categories?filter=name,sw,Inter
192192
GET http://localhost/api.php/categories?filter=id,le,1
193193
GET http://localhost/api.php/categories?filter=id,ngt,2
194194
GET http://localhost/api.php/categories?filter=id,bt,1,1
195+
GET http://localhost/api.php/categories?filter=id,nis
196+
GET http://localhost/api.php/categories?filter=categories.id,eq,1
195197
GET http://localhost/api.php/categories?filter=categories.id,eq,1
196198
```
197199

0 commit comments

Comments
 (0)