I'm managing a followers list through a JSON array. I'm using JSON_ARRAY_APPEND to add a follower:
UPDATE users
SET follows = JSON_ARRAY_APPEND(follows, '$', "followerToBeAdded")
WHERE username = "user"
However, I'm unable to remove a follower from this list. If I try JSON REMOVE, it just erases the whole JSON array instead of just removing a particular follower from the list.
Any idea of a possible query for it?