I’m trying to update multiple columns of a database row:
let data: [String : Any] = [
Profile.CodingKeys.one.rawValue : true,
Profile.CodingKeys.two.rawValue : false,
Profile.CodingKeys.three.rawValue : 0.123,
Profile.CodingKeys.four.rawValue : 0.055,
Profile.CodingKeys.five.rawValue : 1.23
]
try await supabase
.from("profiles")
.update(data)
.eq("id", value: currentUser.user.id)
.execute()
On the line .update(data) I get the error:
Type Any cannot conform to Encodable. Also I couldn’t find anything to bulk updates in the supabase docs. I Appreciate any suggestions.