Can't count a collection with more than 100k docs?

> Count(Documents(Collection('some_collection')))
Error: bad request
{
  errors: [
    {
      code: 'bad request',
      description: 'Query exceeds max width. Max: 100000, current: 112981.'
    }
  ]
}
1 Like

Hi Collin,

I know you wound up getting an answer to this in a support ticket but I wanted to update the board here, in case anyone else finds this question.

The short answer is to use Paginate() to limit the number of items you’re counting. More details are available in our documentation.

We’re going to mark this case as Solved, please let us know if there’s anything else we can do for you.

Thanks,
Cory

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.