Do not edit field if value is null or empty

Options

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