Skip to content

Commit f6da9ba

Browse files
committed
Adds parenthesis for the in() filter as expected by posgrest
Fixes #8
1 parent 3eca6e8 commit f6da9ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/utils/Filters.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ export function _is(columnName, filterValue) {
165165
* @example
166166
* _in('name', ['China', 'France'])
167167
* //=>
168-
* 'name=in.China,France'
168+
* 'name=in.(China,France)'
169169
*/
170170
export function _in (columnName, filterArray) {
171-
return `${columnName}=in.${filterArray.join(',')}`
171+
return `${columnName}=in.(${filterArray.join(',')})`
172172
}
173173

174174
/**

0 commit comments

Comments
 (0)