overlaps method
Finds all rows whose array or range value on the stated column
overlaps (has a value in common) with the specified value
.
await supabase
.from('users')
.select()
.overlaps('age_range', '[2,25)');
Implementation
PostgrestFilterBuilder<T> overlaps(String column, Object value) {
final Uri url;
if (value is List) {
// array
url = appendSearchParams(column, 'ov.{${_cleanFilterArray(value)}}');
} else {
// range types can be inclusive '[', ']' or exclusive '(', ')' so just
// keep it simple and accept a string
url = appendSearchParams(column, 'ov.$value');
}
return copyWithUrl(url);
}