i am setting up a collection from supabase
i have set a limit of 25
my DB has 450 records total that satisfy the query
my query returns all 450 records
when i access the query.data array, there are a BUNCH of null object. 425 in fact. then 25 objects of data at the end of the array.
the only way I can limit or paginate successfully with supabase is by making the API calls myself as shown here.
Yep, that’s what I suspected but it’s still a problem because it’s slowing you down in the editor so not a pleasant experience. The team will look into it for sure. We’ll keep you posted!
Not a bug. When a collection is paginated we create an array containing as many items as you have on the unpaginated collection, then we fill it with null values and only the current page get fetched. It’s required for our internal logic to work. Then you have to bind the collection and not collection->data, you should receive an array containing only the data related to the current page