You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
Update multiple objects for resource in single go.
GET - list
CREATE - list
UPDATE - list
CREATE_OR_UPDATE - list (like an upsert)
4 is a nice to have. While 2 and 3 are what's missing today. The way to do this today is to write a CrudResource for GET and a CommandResource for the others.
The text was updated successfully, but these errors were encountered:
@robinmaben it would be nice if you gave a little more context about the requirement ... and why using the existing CommandResource does not work for you
@robinmaben There are multiple things which are rigid right now, if we want to enable patch on list of objects. Right now defining schema is the only way of getting structured data from request for most of the cases this will solve the problem of sending data for list patch.
In my opinion, we can implement this as follows:
add UPDATE_LIST action
above action should require implementation of update_list method which will take list of serialized data as argument
and the method should return list of objects with updated fields and existing fields.
CommandResource is a temporary workaround to achieve this.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Scenario -
Update multiple objects for resource in single go.
upsert
)4 is a nice to have. While 2 and 3 are what's missing today. The way to do this today is to write a
CrudResource
forGET
and aCommandResource
for the others.The text was updated successfully, but these errors were encountered: