How can I do a patch request to remove a certain element from an array, I know you can do it by position but I won’t know what the position is.
It’s a simple IList<string>, I know the string to pass in.
Paul
I assume that would be the case for updating arrays as well, correct? I have a user document with a Roles array on it that I want to update if the role name changes. Do I need to just load each user, find the role, change it, and store it for each user? Or is there a way to use the patching API for this?Here's my user document:{name: "username",...,roles: [{id:"roles/1",name:"role1"},{id:"roles/2",name:"role2"}]}I'm only just getting started with Raven, so let me know if I'm structuring this wrong.