Do not edit field if value is null or empty
Hi everyone, I created a new ticket https://xano.nolt.io/159
When editing a record, sometimes I want to edit only one or a couple of fields in one request, but then I want to edit other fields in another request, so, we have to create more than one endpoint to edit the same thing or create an overcomplicated logic to just update the fields I want in each specific request.
It would be cool to be able to pass to the same endpoint a set of input parameters (leaving other ones empty) and have a checkbox or toggle to ignore changes to a field if the inserted input value is empty, that way we can reuse the same endpoint to edit different fields of the same data record depending of the input we pass through the request.
Comments
-
Hey @Felipe Letelier you can use conditional set filters to accomplish this -- then this would reduce everything to one endpoint -https://docs.xano.com/guides/data-manipulation/conditionally-editing-fields
-
I completely missed this 😍! Loving Xano more and more every day, now I have some rebuild to do 😅
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback