I'm looking into couchDB. If i understand correctly, you can't just send a "query" to couchDB and do a partial update.
For example this document called "users" (simplified for clarity):
{
allusers: [
{"id": 1, "username":"myuser1", "pass":"secret"},
{"id": 2, "username":"myuser2", "pass":"password"},
{"id": 3, "username":"myuser3", "pass":"crypto"}
]
}
Is it true there isn't really a way to update user 3's password, that instead I have to load the entire document, make the update in javascript on the client, then send the whole object back using a PUT request?
I'm hoping that I just don't quite understand how couchDB works and wants things done.
How do I update one part of a possibly very large object?