What you can do to avoid creating multiple endpoints is to put all the data in a variable and when using the endpoint, if the input is empty, it takes the data from that variable. It’s like a copy and paste the same value. I know it’s not ideal, but it can speed up your creation.
Hi and thanks @felipegranado
Its something i do at the moment, basically filling the “empty” fields with existing data that will not change. In some cases still need to create some new endpoints, but yeah it is like it is…
Here is how you can do what you want. You just set a first_notempty filter in Xano, its super easy to do, only takes a minute and you won’t have to create multiple endpoints or pass through all of the data.
@mark@IKR you should use first_notnull filter in Xano. When you use first_notempty you will not be able to clear the data. When dealing with nullable inputs you have the following:
null (data not passed) → not changed
empty ( “” passed) → erased
not_empty → change the data.
When yo use first_notempty passing empty string will be bypassed by the filter and data will remain unchanged. In such a case you do not have a way to erase the data from the db column.