Prodigy7kX
04/19/2022, 9:05 PMts
async function deleteOneAccount(id: string) {
const { data: account, error } = await supabase
.from<Account>('accounts')
.delete()
.match({ id })
.throwOnError();
return { account, error };
}
The query is executed just fine but always throws back a warning:
json
{
"details": "Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row",
"message": "JSON object requested, multiple (or no) rows returned",
}
Can anyone explain why it does happen?Needle
04/19/2022, 9:05 PM/title
command!
We have solved your problem?
Click the button below to archive it.Muezz
04/19/2022, 9:13 PMNeedle
04/19/2022, 9:13 PMgaryaustin
04/19/2022, 9:38 PMProdigy7kX
04/19/2022, 9:42 PM