I want to update my supabase table with an object which I have got as input from the user.
I keep getting 404 Error. Is this happening cause supabase doesn’t support it yet? (RLS is disabled for now)
const { data, error } = await supabase
.from("company")
.update(inputFields.values)
.match(originalFields.values);
};
This is what inputFields.values / originalFields.values look like.
Only the first 3 values are being updated not the entire row.
inputFields = {
"name": "Piramal Glassed", #NEW
"email": "[email protected]", #NEW
"contact": "98203" #NEW
"pin": 400066, #SAME AS ORIGINAL
"city": "Mumbai", #SAME AS ORIGINAL
"state": "Maharashtra", #SAME AS ORIGINAL
"country": "India", #SAME AS ORIGINAL
}
originalFields = {
"name": "Tata Steel",
"email": "[email protected]",
"contact": "982031132112"
"pin": 400066,
"city": "Mumbai",
"state": "Maharashtra",
"country": "India",
}