Closed pfeffer629 closed 1 year ago
I have tested upsert and insert, and upon success, receive this response:
{error: null, data: null, count: null, status: 201, statusText: ''}
I am trying to use statusText to determine whether a row has been created or updated.
async function createUser() { const res = await supabase .from("users") .insert( { username: username }, ); if (res.error) { throw res.error; } console.log(res) }
statusText returns information as per documentation
Closing as duplicate of #405
Bug report
Describe the bug
I have tested upsert and insert, and upon success, receive this response:
{error: null, data: null, count: null, status: 201, statusText: ''}
I am trying to use statusText to determine whether a row has been created or updated.
To Reproduce
Expected behavior
statusText returns information as per documentation
System information