json-server
json-server copied to clipboard
Push to a nested array using PATCH?
I am using JSON server to create a simple API. I would like to update a nested array in this case the videos array in the playlist with id 'default':
"playlists": [
{
"id": "default",
"videos": [
{
"id": 123
},
{
"id": 456
}
]
}
]
There is a method described here by sending a specific payload, but having tried this I don't think it is supported by json-server.
My question is whether there is an easy way to update a nested array using a PATCH request?
I have the same problem. Any answer for this question ?
me too have this problem :(
Currently having this problem
Having this problem as well 😢