I am trying to print out multiple data from Supabase using flutter but it just isn't working
getResponse(String uid) async {
await client
.from("privChatRoom")
.select()
.eq('userID', uid)
.single()
.execute()
.then((value) {
if (value.error == null) {
print('value.data: ${value.data}');
} else {
print(value.error.message.toString());
print(value.error.hint.toString());
}
});
}
This is the error i get whenever i run this function
I/flutter ( 2326): JSON object requested, multiple (or no) rows returned
I/flutter ( 2326): null
I have multiple row with the same uid that i want to get please how do i get it
EDIT: Found the answer i just had to remove .single()