How to update just a field in the database #49
-
I don't know if I'm using the API correctly, but I need to update just a field in a row in the database. I tryed to use the method So this way I need to declare a whole new class with just the field that I need to update in the database or retrive all the data in another call and after this, update the row sending all the data of the row? Sorry, if I get it all wrong, but I'm really confusied. I'm stuck with it. In the context of SQL querys we can update just the field that we need, but I can't figure it out how to do it with supbase-csharp api. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @rhuanbarros, at the moment I’m writing a PR that addresses this exact issue. I plan on having a new version with this functionality to work out in the next day or two. But, yes, at the moment you would have to have get the model, update the value locally, and then update it. It’s a rather un-ideal setup. New changes will make this much easier! you can follow the progress here: supabase-community/postgrest-csharp#60 |
Beta Was this translation helpful? Give feedback.
Hey @rhuanbarros, at the moment I’m writing a PR that addresses this exact issue. I plan on having a new version with this functionality to work out in the next day or two.
But, yes, at the moment you would have to have get the model, update the value locally, and then update it. It’s a rather un-ideal setup. New changes will make this much easier!
you can follow the progress here: supabase-community/postgrest-csharp#60