How to implement the PATCH Method the right way?

Answered

In Xano, the PATCH method overwrites the entire object by default. This is not how I imagine it. Normally PATCH should be used for partial changes and PUT should overwrite the object.
So now I am looking for a filter for my fields to overwrite the values only if the keys occur in the request.
I have to say that I imagined this would be easier.
This menu is so badly described that it is not at all clear what the filter is applied to.
How can I apply the filter so that a key value of the request is only written to the appropriate database field if it exists and only if it is not empty or not null or ''?

2
7 replies