I'd like just the count number... so with "head" I...
# javascript
t
I'd like just the count number... so with "head" I can't filter?
g
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
without head it works and then I can use .length at the array, but the count is undefined.
g
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.
{ data, error,count } = await supabase.... should return null,null,count when head is set true, versus data[],null,count if not set.
t
yeah, this is odd, if I put head: true count is null if I remove it then count = 1
g
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.