incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gagne <da...@dannygagne.com>
Subject Re: delete key value pair?
Date Thu, 16 Jul 2009 23:26:45 GMT
All you need to do is GET the document, make the change and the PUT it
back.  Deleting a key value pair in a document is the same thing as editing
the document.  This wiki page describes the document api:
http://wiki.apache.org/couchdb/HTTP_Document_API

Hope that helps,

danny

On Thu, Jul 16, 2009 at 7:16 PM, Tommy Chheng <tommy.chheng@gmail.com>wrote:

> How can i delete just a key-value pair but not the whole document?
>
> Ex:  { "first_name": "blah", "last_name": "last"} , i want to delete the kv
> pair "first_name": "blah" but not the whole document.
>
>
> Thanks,
> Tommy
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message