I have a simple CouchbaseList of documents. I am having a problem removing documents from the list.
I retrieve the document using simple query.
var p = couchbaseList.FirstOrDefault(p => p.Name == "test");
I have tried a couple of different variations to remove the document, starting with
bool removeResult = couchbaseList.Remove(p); // always returns false
I then tried:
int listIndex = couchbaseList.IndexOf(p); // returns -1
couchbaseList.RemoveAt(listIndex);
Any suggestions?