How can I store a single data key in a JSON column cast as an array without deleting other keys?
I have a table called "Books" with a "notes" column.
The "notes" column is cast as an array.
The data that is being stored, looks something like this:
The problem that I am having is that when I create an Edit action that edits only one element, all of the others are set to null because a new array with a single key (the current one) is overwriting the entire field. I tried
books->brief_synopsis
, but that does not work either.
How can I set up my Edit action to update the target element without erasing the other elements?0 Replies