Getting status code 406 with maybeSingle when returning 0 rows
{"code":"PGRST116","details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row","hint":null,"message":"JSON object requested, multiple (or no) rows returned"}{"code":"PGRST116","details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row","hint":null,"message":"JSON object requested, multiple (or no) rows returned"}Code:
const [wishlist] = createResource(
() =>
from('wishlists')
.select('uuid, name, description, wishlist_items!inner(*)')
.maybeSingle() as any,
)const [wishlist] = createResource(
() =>
from('wishlists')
.select('uuid, name, description, wishlist_items!inner(*)')
.maybeSingle() as any,
)