Bug report
Describe the bug
I tried to retrieve data from a table as follows.
I wanted to know the number of data filtered by range() and is().
However, the count value returns a value that ignores the range().
As a test, I set head to false and looked at the data in the return value, and it seems that the range filter is applied there (see the screenshot).
const input = req.params
const nullParams = input?.nullParams
let query = supabase
.from('docs')
.select('id', { count: 'exact', head: false })
.match({
user_id: user.id,
})
.order('created_at', { ascending: false })
if (nullParams && nullParams.length > 0) {
for (const nullParam of nullParams) {
// need to use .is() to filter data with null
query = query.is(nullParam, null)
}
}
if (input?.range) {
query = query.range(input.range.from, input.range.to)
}
return await query
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Go to '…'
- Click on '…'
- Scroll down to '…'
- See error
Expected behavior
The count value and the length of the data in the return value is the same.
Screenshots

System information
- OS: macOS
- Version of supabase-js: 2.39.3
Bug report
Describe the bug
I tried to retrieve data from a table as follows.
I wanted to know the number of data filtered by
range()andis().However, the count value returns a value that ignores the
range().As a test, I set head to
falseand looked at thedatain the return value, and it seems that therangefilter is applied there (see the screenshot).To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
The
countvalue and the length of thedatain the return value is the same.Screenshots
System information