couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Le Brasseur <johnlebrass...@gmail.com>
Subject Getting, editing and (re-)Posting docs to update them:
Date Sun, 12 Feb 2017 15:19:42 GMT
Hi.
I am getting(GET) all the docs from my database in order to try and update
certain data in all of them and then POST the edited docs to update the
database.


However, the documents contain extra data which looks like this:

 "id": "d8d006c66c0e4555bf12e5d086003010",
      "key": "d8d006c66c0e4555bf12e5d086003010",
      "value": {
        "rev": "28-38526f3787b1fcedc82624419709c347"
      },
      "doc": { ....


This is followed by the actual document:

 "_id": "d8d006c66c0e4555bf12e5d086003010",
 "_rev": "28-38526f3787b1fcedc82624419709c347",
        ...........etc.



Is there a way to get output without this data added?

If not I presume one must remove this manually every time one wishes to
edit documents.

Many thanks.

John

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