I'd like just the count number... so with "head" I can't filter?
g
garyaustin
10/26/2021, 3:06 PM
I thought you were not getting the array back which is expected. You are not getting a count back? You can filter with count showing the results
t
Tito
10/26/2021, 3:12 PM
without head it works and then I can use .length at the array, but the count is undefined.
g
garyaustin
10/26/2021, 3:17 PM
So count should come back with head or not. Count is of "all" items matching filter even if you limit number returned. If you use head then count still comes back, but the data array is NULL.
garyaustin
10/26/2021, 3:22 PM
{ data, error,count } = await supabase.... should return null,null,count when head is set true, versus data[],null,count if not set.
t
Tito
10/26/2021, 3:33 PM
yeah, this is odd, if I put head: true count is null if I remove it then count = 1
g
garyaustin
10/26/2021, 3:44 PM
At this point I would look and see what is happening to the HEAD request on the network versus GET (without HEAD true). Maybe getting messed up.